X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=Roo%2FLoadMask.js;h=923099ac1dd285f9b7dcb73b6c956e3d4f9102e4;hb=0b69a11b1055a6d3a3fd0719bdd58b5a235de0e4;hp=1ed8ef2ff20881435f2c021b2f276c5c68a4d2b5;hpb=5c01637f96cec27ee535553ab663ac828502c646;p=roojs1 diff --git a/Roo/LoadMask.js b/Roo/LoadMask.js index 1ed8ef2ff2..923099ac1d 100644 --- a/Roo/LoadMask.js +++ b/Roo/LoadMask.js @@ -77,21 +77,33 @@ Roo.LoadMask.prototype = { onLoadException : function() { - if (this.store && typeof(this.store.reader.jsonData.errorMsg) != 'undefined') { - Roo.MessageBox.alert("Error loading",this.store.reader.jsonData.errorMsg); + Roo.log(arguments); + + 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); } },