From 9afe4b98da13bbf1ce2fd68a660ee1d77fd84f2f Mon Sep 17 00:00:00 2001 From: Petr Vobornik Date: Mon, 24 Oct 2011 14:53:29 +0200 Subject: Page is cleared before it is visible https://fedorahosted.org/freeipa/ticket/1459 Changes: * added clear method to widgets, section, search, details, association facets * clear and refresh method in facet are called only if key/filter was changed * added id generator for widgets --- install/ui/host.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'install/ui/host.js') diff --git a/install/ui/host.js b/install/ui/host.js index 99203052..b1d16e64 100644 --- a/install/ui/host.js +++ b/install/ui/host.js @@ -567,6 +567,11 @@ IPA.host_keytab_widget = function(spec) { set_status(value ? 'present' : 'missing'); }; + that.clear = function() { + that.present_span.css('display', 'none'); + that.missing_span.css('display', 'none'); + }; + function set_status(status) { that.present_span.css('display', status == 'present' ? 'inline' : 'none'); that.missing_span.css('display', status == 'missing' ? 'inline' : 'none'); @@ -720,6 +725,13 @@ IPA.host_password_widget = function(spec) { set_status(value ? 'present' : 'missing'); }; + that.clear = function() { + that.missing_span.css('display', 'none'); + that.present_span.css('display', 'none'); + var password_label = $('.button-label', that.set_password_button); + password_label.text(''); + }; + function set_status(status) { that.status = status; -- cgit