X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=Roo%2FElement.js;h=a55c6da3ea908bd4ef9f3e01c86a2af33417bb83;hb=61bc45258e16a779856dd2ad0862630b489e4583;hp=4353c5e13455c96315eec78b81401c4b4e8c70ca;hpb=0156eff22ae59e861c5173f90ea6f26e2accd2ea;p=roojs1 diff --git a/Roo/Element.js b/Roo/Element.js index 4353c5e134..a55c6da3ea 100644 --- a/Roo/Element.js +++ b/Roo/Element.js @@ -213,15 +213,6 @@ if(opt.anim.isAnimated()){ } } - if(Roo.isAndroid){ - alert('Is Android'); - return Roo.get(document.documentElement); - } - - if(!Roo.isAndroid){ - - } - return Roo.isAndroid ? Roo.get(document.documentElement) : Roo.get(document.body); }, @@ -2121,6 +2112,7 @@ if(opt.anim.isAnimated()){ if(!this._mask){ this._mask = Roo.DomHelper.append(this.dom, {cls:"roo-el-mask"}, true); } + this.addClass("x-masked"); this._mask.setDisplayed(true); @@ -2142,12 +2134,23 @@ if(opt.anim.isAnimated()){ if(typeof msg == 'string'){ if(!this._maskMsg){ - this._maskMsg = Roo.DomHelper.append(this.dom, {cls:"roo-el-mask-msg", cn:{tag:'div'}}, true); + this._maskMsg = Roo.DomHelper.append(this.dom, { + cls: "roo-el-mask-msg", + cn: [ + { + tag: 'i', + cls: 'fa fa-spinner fa-spin' + }, + { + tag: 'div' + } + ] + }, true); } var mm = this._maskMsg; mm.dom.className = msgCls ? "roo-el-mask-msg " + msgCls : "roo-el-mask-msg"; - if (mm.dom.firstChild) { // weird IE issue? - mm.dom.firstChild.innerHTML = msg; + if (mm.dom.lastChild) { // weird IE issue? + mm.dom.lastChild.innerHTML = msg; } mm.setDisplayed(true); mm.center(this);