X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=Roo%2FLoadMask.js;h=923099ac1dd285f9b7dcb73b6c956e3d4f9102e4;hb=0b69a11b1055a6d3a3fd0719bdd58b5a235de0e4;hp=50c0f74917a8f09303aaed513dfc1d12405fc7c1;hpb=2278b040ca6325801f8f231d53900af577bd3e09;p=roojs1 diff --git a/Roo/LoadMask.js b/Roo/LoadMask.js index 50c0f74917..923099ac1d 100644 --- a/Roo/LoadMask.js +++ b/Roo/LoadMask.js @@ -79,21 +79,31 @@ Roo.LoadMask.prototype = { { Roo.log(arguments); - if (this.store && typeof(this.store.reader.jsonData.errorMsg) != 'undefined') { - Roo.MessageBox.alert("Error loading",this.store.reader.jsonData.errorMsg); + if (typeof(arguments[3]) != 'undefined') { + Roo.MessageBox.alert("Error loading",arguments[3]); + } + /* + try { + if (this.store && typeof(this.store.reader.jsonData.errorMsg) != 'undefined') { + Roo.MessageBox.alert("Error loading",this.store.reader.jsonData.errorMsg); + } + } catch(e) { + } - this.el.unmask(this.removeMask); + */ + + (function() { this.el.unmask(this.removeMask); }).defer(50, this); }, // private onLoad : function() { - this.el.unmask(this.removeMask); + (function() { this.el.unmask(this.removeMask); }).defer(50, this); }, // private onBeforeLoad : function(){ if(!this.disabled){ - this.el.mask(this.msg, this.msgCls); + (function() { this.el.mask(this.msg, this.msgCls); }).defer(50, this); } },