From e97e1ff422b0fbbb0c9f90047df428bd55ed07ee Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Tue, 12 Nov 2013 22:57:29 +0000 Subject: [PATCH] Fix double confirmation on actions --- filemanager/js/app.js | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/filemanager/js/app.js b/filemanager/js/app.js index 1d84208af6..0cee588a1d 100644 --- a/filemanager/js/app.js +++ b/filemanager/js/app.js @@ -367,22 +367,7 @@ app.classes.filemanager = AppJS.extend( action: function(_action, _elems) { var paths = this._elems2paths(_elems); - if (typeof _action.data.confirm != 'undefined') - { - var that = this; - var action_id = _action.id; - et2_dialog.show_dialog(function(button_id,value) - { - if (button_id != et2_dialog.NO_BUTTON) - { - that._do_action(action_id, paths); - } - }, _action.data.confirm, this.egw.lang('Confirmation required'), et2_dialog.BUTTONS_YES_NO, et2_dialog.QUESTION_MESSAGE); - } - else - { - this._do_action(_action.id, paths); - } + this._do_action(_action.id, paths); }, /**