mirror of
https://git.proxmox.com/git/proxmox-widget-toolkit
synced 2025-05-06 08:42:01 +00:00
monStoreErrors: new option clearMaskBeforeLoad
To clear error mask before load starts.
This commit is contained in:
parent
0c786d2b08
commit
5b4b3ffdb6
20
Utils.js
20
Utils.js
@ -167,13 +167,19 @@ Ext.define('Proxmox.Utils', { utilities: {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
monStoreErrors: function(me, store) {
|
monStoreErrors: function(me, store, clearMaskBeforeLoad) {
|
||||||
me.mon(store, 'beforeload', function(s, operation, eOpts) {
|
if (clearMaskBeforeLoad) {
|
||||||
if (!me.loadCount) {
|
me.mon(store, 'beforeload', function(s, operation, eOpts) {
|
||||||
me.loadCount = 0; // make sure it is numeric
|
Proxmox.Utils.setErrorMask(me, false);
|
||||||
Proxmox.Utils.setErrorMask(me, true);
|
})
|
||||||
}
|
} else {
|
||||||
});
|
me.mon(store, 'beforeload', function(s, operation, eOpts) {
|
||||||
|
if (!me.loadCount) {
|
||||||
|
me.loadCount = 0; // make sure it is numeric
|
||||||
|
Proxmox.Utils.setErrorMask(me, true);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
// only works with 'proxmox' proxy
|
// only works with 'proxmox' proxy
|
||||||
me.mon(store.proxy, 'afterload', function(proxy, request, success) {
|
me.mon(store.proxy, 'afterload', function(proxy, request, success) {
|
||||||
|
Loading…
Reference in New Issue
Block a user