summaryrefslogtreecommitdiffstats
path: root/install/ui/user.js
diff options
context:
space:
mode:
Diffstat (limited to 'install/ui/user.js')
-rw-r--r--install/ui/user.js11
1 files changed, 2 insertions, 9 deletions
diff --git a/install/ui/user.js b/install/ui/user.js
index fbcc72852..7247035db 100644
--- a/install/ui/user.js
+++ b/install/ui/user.js
@@ -172,8 +172,7 @@ IPA.user_status_widget = function(spec) {
name: 'link',
click: function() {
- var entity = IPA.get_entity(that.entity_name);
- var facet = entity.get_facet();
+ var facet = that.entity.get_facet();
if (facet.is_dirty()) {
var dialog = IPA.dirty_dialog({
@@ -184,7 +183,6 @@ IPA.user_status_widget = function(spec) {
that.show_activation_dialog();
};
- dialog.init();
dialog.open(container);
} else {
@@ -255,8 +253,7 @@ IPA.user_status_widget = function(spec) {
that.set_status(
action == 'activate',
function(data, textStatus, xhr) {
- var entity = IPA.get_entity(that.entity_name);
- var facet = entity.get_facet();
+ var facet = that.entity.get_facet();
facet.refresh();
dialog.close();
}
@@ -267,8 +264,6 @@ IPA.user_status_widget = function(spec) {
dialog.close();
});
- dialog.init();
-
dialog.open(that.container);
};
@@ -383,8 +378,6 @@ IPA.user_password_widget = function(spec) {
dialog.close();
});
- dialog.init();
-
dialog.open(that.container);
};