summaryrefslogtreecommitdiffstats
path: root/install/ui/facet.js
diff options
context:
space:
mode:
authorPetr Vobornik <pvoborni@redhat.com>2012-06-06 17:52:15 +0200
committerPetr Vobornik <pvoborni@redhat.com>2012-06-13 16:44:30 +0200
commit961aeb80e9d74df6f6b036a6152fdc3f9a6f5b39 (patch)
treeffec7d6db12578e389d9c8460b3c9a15652b6570 /install/ui/facet.js
parenta5fcfc2c7ea7f1014b6dc79c7784c2d0040386dc (diff)
downloadfreeipa.git-961aeb80e9d74df6f6b036a6152fdc3f9a6f5b39.tar.gz
freeipa.git-961aeb80e9d74df6f6b036a6152fdc3f9a6f5b39.tar.xz
freeipa.git-961aeb80e9d74df6f6b036a6152fdc3f9a6f5b39.zip
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
Diffstat (limited to 'install/ui/facet.js')
-rw-r--r--install/ui/facet.js4
1 files changed, 3 insertions, 1 deletions
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;
}
};