Ext.apply(newopts, {
success: function(response, options) {
if (options.waitMsgTarget) {
- options.waitMsgTarget.setLoading(false);
+ if (Proxmox.Utils.toolkit === 'touch') {
+ options.waitMsgTarget.setMasked(false);
+ } else {
+ options.waitMsgTarget.setLoading(false);
+ }
}
var result = Ext.decode(response.responseText);
response.result = result;
},
failure: function(response, options) {
if (options.waitMsgTarget) {
- options.waitMsgTarget.setLoading(false);
+ if (Proxmox.Utils.toolkit === 'touch') {
+ options.waitMsgTarget.setMasked(false);
+ } else {
+ options.waitMsgTarget.setLoading(false);
+ }
}
response.result = {};
try {
var target = newopts.waitMsgTarget;
if (target) {
- // Note: ExtJS bug - this does not work when component is not rendered
- target.setLoading(newopts.waitMsg);
+ if (Proxmox.Utils.toolkit === 'touch') {
+ target.setMasked({ xtype: 'loadmask', message: newopts.waitMsg} );
+ } else {
+ // Note: ExtJS bug - this does not work when component is not rendered
+ target.setLoading(newopts.waitMsg);
+ }
}
Ext.Ajax.request(newopts);
},