X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=Roo%2FLoadMask.js;h=923099ac1dd285f9b7dcb73b6c956e3d4f9102e4;hb=61bc45258e16a779856dd2ad0862630b489e4583;hp=73f9a5f734009bd155640946fd2af58ad004a34c;hpb=dd232846ee06ff4ad76a604313f9a9d49b15184d;p=roojs1 diff --git a/Roo/LoadMask.js b/Roo/LoadMask.js index 73f9a5f734..923099ac1d 100644 --- a/Roo/LoadMask.js +++ b/Roo/LoadMask.js @@ -81,33 +81,29 @@ Roo.LoadMask.prototype = { if (typeof(arguments[3]) != 'undefined') { Roo.MessageBox.alert("Error loading",arguments[3]); - } else { - /* - try { - if (this.store && typeof(this.store.reader.jsonData.errorMsg) != 'undefined') { - Roo.MessageBox.alert("Error loading",this.store.reader.jsonData.errorMsg); - } - } catch(e) { - - } - */ + } + /* + try { + if (this.store && typeof(this.store.reader.jsonData.errorMsg) != 'undefined') { + Roo.MessageBox.alert("Error loading",this.store.reader.jsonData.errorMsg); + } + } catch(e) { + } - // te - - - - 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); } },