Roo/Element.js
authorEdward <edward@roojs.com>
Wed, 26 Sep 2018 06:00:02 +0000 (14:00 +0800)
committerEdward <edward@roojs.com>
Wed, 26 Sep 2018 06:00:02 +0000 (14:00 +0800)
Roo/Element.js

index 987b629..447d972 100644 (file)
@@ -2133,7 +2133,18 @@ 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";