diff options
author | Petr Vobornik <pvoborni@redhat.com> | 2014-02-21 16:21:04 +0100 |
---|---|---|
committer | Petr Vobornik <pvoborni@redhat.com> | 2014-04-15 12:41:54 +0200 |
commit | ad48697ff9a7a25f52047e3ddf68a551c89b0758 (patch) | |
tree | 527d8ded692dc49403592063416019d0e7826b0f /install/ui/src/freeipa/widget.js | |
parent | 937533c48e27c5a8d4d63978d32990451a10a36a (diff) | |
download | freeipa-ad48697ff9a7a25f52047e3ddf68a551c89b0758.tar.gz freeipa-ad48697ff9a7a25f52047e3ddf68a551c89b0758.tar.xz freeipa-ad48697ff9a7a25f52047e3ddf68a551c89b0758.zip |
webui: fix combobox styles to work with selenium testing
https://fedorahosted.org/freeipa/ticket/3903
Reviewed-By: Adam Misnyovszki <amisnyov@redhat.com>
Diffstat (limited to 'install/ui/src/freeipa/widget.js')
-rw-r--r-- | install/ui/src/freeipa/widget.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/install/ui/src/freeipa/widget.js b/install/ui/src/freeipa/widget.js index 0c02019e1..568696b5b 100644 --- a/install/ui/src/freeipa/widget.js +++ b/install/ui/src/freeipa/widget.js @@ -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) { |