summaryrefslogtreecommitdiffstats
path: root/install/ui/details.js
diff options
context:
space:
mode:
Diffstat (limited to 'install/ui/details.js')
-rw-r--r--install/ui/details.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/install/ui/details.js b/install/ui/details.js
index cdb6a82bf..f038daa67 100644
--- a/install/ui/details.js
+++ b/install/ui/details.js
@@ -1160,6 +1160,8 @@ IPA.object_action = function(spec) {
return IPA.confirm(msg);
};
+ that.object_execute_action = that.execute_action;
+
return that;
};
@@ -1201,6 +1203,13 @@ IPA.delete_action = function(spec) {
var that = IPA.object_action(spec);
+ that.execute_action = function(facet, on_success, on_error) {
+
+ if (facet.is_dirty()) facet.reset();
+
+ that.object_execute_action(facet, on_success, on_error);
+ };
+
that.on_success = function(facet, data, text_status, xhr) {
IPA.notify_success(data.result.summary);