summaryrefslogtreecommitdiffstats
path: root/install/ui/src/freeipa/Application_controller.js
diff options
context:
space:
mode:
authorPetr Vobornik <pvoborni@redhat.com>2013-03-28 16:39:15 +0100
committerPetr Vobornik <pvoborni@redhat.com>2013-05-06 16:22:20 +0200
commitcc92060e35e04c78443aeba4901b90843f5d831e (patch)
tree00cc493dee17125a4416e5408f26d6730aeff8bd /install/ui/src/freeipa/Application_controller.js
parentc0007704e8e8bea785dde410647c79501527eb72 (diff)
downloadfreeipa-cc92060e35e04c78443aeba4901b90843f5d831e.tar.gz
freeipa-cc92060e35e04c78443aeba4901b90843f5d831e.tar.xz
freeipa-cc92060e35e04c78443aeba4901b90843f5d831e.zip
Use dojo/on instead of dojo/topic for facet-xxx events'
https://fedorahosted.org/freeipa/ticket/3236
Diffstat (limited to 'install/ui/src/freeipa/Application_controller.js')
-rw-r--r--install/ui/src/freeipa/Application_controller.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/install/ui/src/freeipa/Application_controller.js b/install/ui/src/freeipa/Application_controller.js
index d9f3129c8..8ce853e73 100644
--- a/install/ui/src/freeipa/Application_controller.js
+++ b/install/ui/src/freeipa/Application_controller.js
@@ -71,11 +71,10 @@ define(['dojo/_base/declare',
on(this.app_widget, 'logout-click', lang.hitch(this, this.on_logout));
on(this.menu, 'selected', lang.hitch(this, this.on_menu_select));
- topic.subscribe('facet-show', lang.hitch(this, this.on_facet_show));
- topic.subscribe('facet-change', lang.hitch(this, this.on_facet_change));
- topic.subscribe('facet-change-canceled', lang.hitch(this, this.on_facet_canceled));
+ on(this.router, 'facet-show', lang.hitch(this, this.on_facet_show));
+ on(this.router, 'facet-change', lang.hitch(this, this.on_facet_change));
+ on(this.router, 'facet-change-canceled', lang.hitch(this, this.on_facet_canceled));
topic.subscribe('phase-error', lang.hitch(this, this.on_phase_error));
- topic.subscribe('facet-state-change', lang.hitch(this, this.on_facet_state_changed));
this.app_widget.render();
},
@@ -223,6 +222,7 @@ define(['dojo/_base/declare',
if (!facet.container) {
facet.container_node = this.app_widget.content_node;
+ on(facet, 'facet-state-change', lang.hitch(this, this.on_facet_state_changed));
}
if (this.current_facet) {
this.current_facet.hide();