webui: fix combobox styles to work with selenium testing

https://fedorahosted.org/freeipa/ticket/3903

Reviewed-By: Adam Misnyovszki <amisnyov@redhat.com>
This commit is contained in:
Petr Vobornik
2014-02-21 16:21:04 +01:00
parent 937533c48e
commit ad48697ff9
2 changed files with 5 additions and 5 deletions

View File

@@ -1013,7 +1013,6 @@ table.scrollable tbody {
}
.combobox-widget-list {
visibility: hidden;
border: 1px solid #A0A0A0;
background: #EEEEEE;
padding: 5px;
@@ -1027,6 +1026,7 @@ table.scrollable tbody {
}
.combobox-widget-list a {
position: relative;
padding: 0;
margin: 0;
}

View File

@@ -3305,7 +3305,7 @@ IPA.combobox_widget = function(spec) {
that.list_container = $('<div/>', {
'class': 'combobox-widget-list',
css: { 'z-index': that.z_index },
css: { 'z-index': that.z_index, 'display':'none' },
keydown: that.on_list_container_keydown
}).appendTo(that.input_container);
@@ -3505,16 +3505,16 @@ IPA.combobox_widget = function(spec) {
that.open = function() {
if (!that.read_only && that.enabled) {
that.list_container.css('visibility', 'visible');
that.list_container.css('display', '');
}
};
that.close = function() {
that.list_container.css('visibility', 'hidden');
that.list_container.css('display', 'none');
};
that.is_open = function() {
return that.list_container.css('visibility') == 'visible';
return that.list_container.css('display') != 'none';
};
that.search = function(filter, on_success, on_error) {