diff options
author | Petr Vobornik <pvoborni@redhat.com> | 2012-09-03 16:43:13 +0200 |
---|---|---|
committer | Petr Vobornik <pvoborni@redhat.com> | 2012-09-06 17:36:29 +0200 |
commit | 835c7859c5c31807b9f46cf79462459238571f5e (patch) | |
tree | f6c338cc023d95bb80057de46b71fbddedfcd561 /install/ui/search.js | |
parent | a01fbb91e88918ead456ae85e886e975f29dc1be (diff) | |
download | freeipa.git-835c7859c5c31807b9f46cf79462459238571f5e.tar.gz freeipa.git-835c7859c5c31807b9f46cf79462459238571f5e.tar.xz freeipa.git-835c7859c5c31807b9f46cf79462459238571f5e.zip |
Update of confirmation of actions
This patch is changing confirmation of actions according to ticket #3035, see the ticket description.
It does following changes:
* Confirmation of update action was removed.
* Action lists resets to first action (which is usually a NOP: '-- select action --') on change of displayed entry.
* New confirmation dialog was implemented. It is used for action confirmation. It is used in IPA.action to replace the call of window.confirm(message). The old call is a modal window which blocks all JS functionality and has different style than other dialogs in Web UI. The new one has same design and doesn't block background operations.
https://fedorahosted.org/freeipa/ticket/3035
Diffstat (limited to 'install/ui/search.js')
-rw-r--r-- | install/ui/search.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/install/ui/search.js b/install/ui/search.js index 154d7ffa..7c4939bb 100644 --- a/install/ui/search.js +++ b/install/ui/search.js @@ -473,6 +473,7 @@ IPA.batch_disable_action = function(spec) { spec.needs_confirm = spec.needs_confirm === undefined ? true : spec.needs_confirm; spec.enable_cond = spec.enable_cond || ['item-selected']; spec.success_msg = spec.success_msg || IPA.messages.search.disabled; + spec.confirm_msg = spec.confirm_msg || IPA.messages.search.disable_confirm; return IPA.batch_items_action(spec); }; @@ -486,6 +487,7 @@ IPA.batch_enable_action = function(spec) { spec.needs_confirm = spec.needs_confirm === undefined ? true : spec.needs_confirm; spec.enable_cond = spec.enable_cond || ['item-selected']; spec.success_msg = spec.success_msg || IPA.messages.search.enabled; + spec.confirm_msg = spec.confirm_msg || IPA.messages.search.enable_confirm; return IPA.batch_items_action(spec); };
\ No newline at end of file |