summaryrefslogtreecommitdiffstats
path: root/install/ui/details.js
diff options
context:
space:
mode:
authorPetr Vobornik <pvoborni@redhat.com>2011-07-22 13:24:27 +0200
committerAdam Young <ayoung@redhat.com>2011-07-25 23:06:59 -0400
commit9a4ce988df219565ab84602b1eea93e14700862b (patch)
treecaaf240eec6c5e0ed38d8a7990d5a6cc8f02ae2b /install/ui/details.js
parent9e7a3e7f3c46f8c2fc0b54353efd642b4178abf7 (diff)
downloadfreeipa-9a4ce988df219565ab84602b1eea93e14700862b.tar.gz
freeipa-9a4ce988df219565ab84602b1eea93e14700862b.tar.xz
freeipa-9a4ce988df219565ab84602b1eea93e14700862b.zip
fixed empty dns record update
https://fedorahosted.org/freeipa/ticket/1477 Redirection after updating empty DNS Record (which is deleted). Added hook to details facet for post update operation.
Diffstat (limited to 'install/ui/details.js')
-rw-r--r--install/ui/details.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/install/ui/details.js b/install/ui/details.js
index 50fccce49..8e0edaab9 100644
--- a/install/ui/details.js
+++ b/install/ui/details.js
@@ -245,6 +245,7 @@ IPA.details_facet = function(spec) {
var that = IPA.facet(spec);
that.pre_execute_hook = spec.pre_execute_hook;
+ that.post_update_hook = spec.post_update_hook;
that.label = spec.label || IPA.messages && IPA.messages.facets && IPA.messages.facets.details;
that.facet_group = spec.facet_group || 'settings';
@@ -526,7 +527,12 @@ IPA.details_facet = function(spec) {
on_win(data, text_status, xhr);
if (data.error)
return;
-
+
+ if (that.post_update_hook) {
+ that.post_update_hook(data, text_status);
+ return;
+ }
+
var result = data.result.result;
that.load(result);
}