mask whole window with waitMsgTarget

Else the buttons are still functional, and the user can trigger
additional command (i.e. several restore processes).
This commit is contained in:
Dietmar Maurer 2012-03-27 08:32:53 +02:00
parent 42476072e5
commit 2c5351706b
2 changed files with 2 additions and 1 deletions

View File

@ -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);
},

View File

@ -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);
},