diff options
Diffstat (limited to 'install/ui/details.js')
-rw-r--r-- | install/ui/details.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/install/ui/details.js b/install/ui/details.js index 883bb06bf..cdb6a82bf 100644 --- a/install/ui/details.js +++ b/install/ui/details.js @@ -508,10 +508,20 @@ IPA.details_facet = function(spec, no_init) { return valid; }; + that.nofify_update_success = function() { + var msg = IPA.messages.details.updated; + var key = that.get_primary_key(); + key = key[key.length -1] || ''; + msg = msg.replace('${entity}', that.entity.metadata.label_singular); + msg = msg.replace('${primary_key}', key); + IPA.notify_success(msg); + }; + that.update_on_success = function(data, text_status, xhr) { that.load(data); that.on_update.notify(); + that.nofify_update_success(); }; that.update_on_error = function(xhr, text_status, error_thrown) { |