summaryrefslogtreecommitdiffstats
path: root/install/ui/src/freeipa/host.js
diff options
context:
space:
mode:
authorPetr Vobornik <pvoborni@redhat.com>2013-10-23 10:29:50 +0200
committerMartin Kosek <mkosek@redhat.com>2014-01-21 12:04:03 +0100
commitf21bc7ecb8cce280972d8953ed0b47e531753255 (patch)
tree3a33b6c4b391a23198e80fbdda3624ad80c15ca2 /install/ui/src/freeipa/host.js
parentf6b9c7da9d322eccdee23672e57ca3043ef154c6 (diff)
downloadfreeipa.git-f21bc7ecb8cce280972d8953ed0b47e531753255.tar.gz
freeipa.git-f21bc7ecb8cce280972d8953ed0b47e531753255.tar.xz
freeipa.git-f21bc7ecb8cce280972d8953ed0b47e531753255.zip
Dojo event support in widgets
- widgets has a new base class - Evented it allows raising various events - it's purpose is to replace IPA.observer events in a future - now all widget's IPA.observers events has their own counterpart https://fedorahosted.org/freeipa/ticket/3904
Diffstat (limited to 'install/ui/src/freeipa/host.js')
-rw-r--r--install/ui/src/freeipa/host.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/install/ui/src/freeipa/host.js b/install/ui/src/freeipa/host.js
index 1c7528ba..1786c9eb 100644
--- a/install/ui/src/freeipa/host.js
+++ b/install/ui/src/freeipa/host.js
@@ -621,6 +621,7 @@ IPA.host_keytab_widget = function(spec) {
that.update = function(values) {
set_status(values[0] ? 'present' : 'missing');
that.updated.notify([], that);
+ that.emit('update', { source: that });
};
that.clear = function() {
@@ -783,6 +784,7 @@ IPA.host_password_widget = function(spec) {
that.update = function(values) {
set_status(values[0] ? 'present' : 'missing');
that.updated.notify([], that);
+ that.emit('update', { source: that });
};
that.clear = function() {