From 961aeb80e9d74df6f6b036a6152fdc3f9a6f5b39 Mon Sep 17 00:00:00 2001 From: Petr Vobornik Date: Wed, 6 Jun 2012 17:52:15 +0200 Subject: Action panel for host enrollment Widgets in host enrollment sections were modified. They now serve only for displaying of has_key and has_password status. Functionality for setting otp and unprovisioning was moved to separate dialogs. Execution points for opening of these dialogs are items in new action panel in enrollment section. https://fedorahosted.org/freeipa/ticket/2251 --- install/ui/facet.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'install/ui/facet.js') diff --git a/install/ui/facet.js b/install/ui/facet.js index 62950f6c..550407bb 100644 --- a/install/ui/facet.js +++ b/install/ui/facet.js @@ -1523,6 +1523,7 @@ IPA.state_evaluator = function(spec) { //when state changes. Params: state, Context: this that.changed = IPA.observer(); that.state = []; + that.first_pass = true; that.init = function(facet) { @@ -1536,8 +1537,9 @@ IPA.state_evaluator = function(spec) { that.notify_on_change = function(old_state) { - if (IPA.array_diff(that.state, old_state)) { + if (that.first_pass || IPA.array_diff(that.state, old_state)) { that.changed.notify([that.state], that); + that.first_pass = false; } }; -- cgit