From 2759ea29616f14716016c0e62d13909694b2bf0b Mon Sep 17 00:00:00 2001 From: Petr Vobornik Date: Wed, 30 Nov 2011 15:27:58 +0100 Subject: Modifying automount to work with new concept https://fedorahosted.org/freeipa/ticket/2040 --- install/ui/widget.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'install/ui/widget.js') diff --git a/install/ui/widget.js b/install/ui/widget.js index 49e65545..79b03519 100644 --- a/install/ui/widget.js +++ b/install/ui/widget.js @@ -46,6 +46,15 @@ IPA.widget = function(spec) { that.clear = function() { }; + that.set_visible = function(visible) { + + if (visible) { + that.container.show(); + } else { + that.container.hide(); + } + }; + that.widget_create = that.create; return that; @@ -1823,6 +1832,8 @@ IPA.collapsible_section = function(spec) { that.create = function(container) { + that.widget_create(container); + that.header = $('

', { name: that.name, title: that.label @@ -1875,6 +1886,8 @@ IPA.details_table_section = function(spec) { that.composite_widget_create = function(container) { + that.widget_create(container); + var table = $('', { 'class': 'section-table' }).appendTo(container); -- cgit