From fccea2dca4d384ab2992103916cfe8801be53edd Mon Sep 17 00:00:00 2001 From: Petr Voborník Date: Thu, 2 Feb 2012 17:55:36 +0100 Subject: Automember UI - default groups In this patch was implemented and added a control for defining default automember groups. There is a difference from UXD spec. In the spec the control was placed below table in the search facet. This was not working well with the combobox in the control. Open combobox requires some space below it. As it was placed at the bottom of the page it created unwanted blank space and forced showing scrollbars. Moving the control above the table solves the problem without rewriting combobox logic. It can be rewritten and moved down later. https://fedorahosted.org/freeipa/ticket/2195 --- install/ui/widget.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'install/ui/widget.js') diff --git a/install/ui/widget.js b/install/ui/widget.js index 807191e5..2617487f 100644 --- a/install/ui/widget.js +++ b/install/ui/widget.js @@ -2064,7 +2064,7 @@ IPA.combobox_widget = function(spec) { type: 'text', name: that.name, title: that.tooltip, - readonly: !that.editable, + readonly: !that.editable || that.read_only, keyup: function() { that.input_field_changed.notify([], that); }, @@ -2147,7 +2147,8 @@ IPA.combobox_widget = function(spec) { }; that.open = function() { - that.list_container.css('visibility', 'visible'); + if (!that.read_only) + that.list_container.css('visibility', 'visible'); }; that.close = function() { -- cgit