From 2c5351706bfe52f6e205d2fadc729b49a8d59e71 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Tue, 27 Mar 2012 08:32:53 +0200 Subject: [PATCH] mask whole window with waitMsgTarget Else the buttons are still functional, and the user can trigger additional command (i.e. several restore processes). --- www/manager/Utils.js | 2 +- www/manager/window/Restore.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/www/manager/Utils.js b/www/manager/Utils.js index 542f1ab4..52a4392b 100644 --- a/www/manager/Utils.js +++ b/www/manager/Utils.js @@ -360,7 +360,7 @@ Ext.define('PVE.Utils', { statics: { var target = newopts.waitMsgTarget; if (target) { // Note: ExtJS bug - this does not work when component is not rendered - target.setLoading(newopts.waitMsg, true); + target.setLoading(newopts.waitMsg); } Ext.Ajax.request(newopts); }, diff --git a/www/manager/window/Restore.js b/www/manager/window/Restore.js index 5994ed7b..5285ecdc 100644 --- a/www/manager/window/Restore.js +++ b/www/manager/window/Restore.js @@ -58,6 +58,7 @@ Ext.define('PVE.window.Restore', { url: url, params: params, method: 'POST', + waitMsgTarget: me, failure: function (response, opts) { Ext.Msg.alert('Error', response.htmlStatus); },