X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=Roo%2FLoadMask.js;h=c6b587828c1c04d550aa724ed39d0c17884cb184;hb=refs%2Fheads%2Fwip_leon_T7094_logo_image_upload_in_boilerplate;hp=3176b02a8f910a313500c904f5bf4f5d5442323e;hpb=61f971a4d193a943a40cea519218389f1fc1a519;p=roojs1 diff --git a/Roo/LoadMask.js b/Roo/LoadMask.js index 3176b02a8f..c6b587828c 100644 --- a/Roo/LoadMask.js +++ b/Roo/LoadMask.js @@ -44,6 +44,7 @@ Roo.LoadMask.prototype = { * True to create a single-use mask that is automatically destroyed after loading (useful for page loads), * False to persist the mask element reference for multiple uses (e.g., for paged data widgets). Defaults to false. */ + removeMask : false, /** * @cfg {String} msg * The text to display in a centered loading message box (defaults to 'Loading...') @@ -92,20 +93,18 @@ Roo.LoadMask.prototype = { } */ - - - 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); } },