From 835c7859c5c31807b9f46cf79462459238571f5e Mon Sep 17 00:00:00 2001 From: Petr Vobornik Date: Mon, 3 Sep 2012 16:43:13 +0200 Subject: 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 --- install/ui/search.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'install/ui/search.js') 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 -- cgit