From c1e03779ff92b9a4f2d2e93c83a503699cfef0e2 Mon Sep 17 00:00:00 2001 From: nathangray Date: Mon, 29 Jan 2018 15:55:12 -0700 Subject: [PATCH] Switch phrase to one already translated, make confirmation dialog a little wider --- api/js/etemplate/et2_widget_vfs.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/api/js/etemplate/et2_widget_vfs.js b/api/js/etemplate/et2_widget_vfs.js index 2c35837554..cc496d760d 100644 --- a/api/js/etemplate/et2_widget_vfs.js +++ b/api/js/etemplate/et2_widget_vfs.js @@ -831,8 +831,8 @@ var et2_vfsUpload = (function(){ "use strict"; return et2_file.extend( // We don't use ui-icon because it assigns a bg image .addClass("delete icon") .bind( 'click', function() { - et2_dialog.show_dialog( - function(button) { + et2_createWidget("dialog", { + callback: function(button) { if(button == et2_dialog.YES_BUTTON) { egw.json("filemanager_ui::ajax_action", [ @@ -849,8 +849,12 @@ var et2_vfsUpload = (function(){ "use strict"; return et2_file.extend( ).sendRequest(); } }, - egw.lang('Delete file?') - ); + message: self.egw().lang('Delete file')+'?', + title: self.egw().lang('Confirmation required'), + buttons: et2_dialog.BUTTONS_YES_NO, + dialog_type: et2_dialog.QUESTION_MESSAGE, + width: 250 + }, self); }); } }