roojs-ui.js wip_edward_T5765_masking_for_missing_entries
authorEdward <edward@roojs.com>
Wed, 24 Apr 2019 07:54:50 +0000 (15:54 +0800)
committerEdward <edward@roojs.com>
Wed, 24 Apr 2019 07:54:50 +0000 (15:54 +0800)
roojs-ui-debug.js
roojs-all.js
roojs-debug.js

roojs-all.js
roojs-debug.js
roojs-ui-debug.js
roojs-ui.js

index 14b4f9a..064f64e 100644 (file)
@@ -1938,7 +1938,7 @@ if(A===true){return fs;}return Roo.urlDecode(fs);},getFieldValues:function(A){if
 if(f.inputType=='radio'){if(typeof(B[f.getName()])=='undefined'){B[f.getName()]='';}if(!f.el.dom.checked){return;}v=f.el.dom.value;}if((typeof(v)=='object')&&f.getRawValue){v=f.getRawValue();}if(f.name!=f.getName()){B[f.name]=f.getRawValue();}B[f.getName()]=v;
 });return B;},clearInvalid:function(){this.items.each(function(f){f.clearInvalid();});Roo.each(this.childForms||[],function(f){f.clearInvalid();});return this;},reset:function(){this.items.each(function(f){f.reset();});Roo.each(this.childForms||[],function(f){f.reset();
 });this.resetHasChanged();return this;},add:function(){this.items.addAll(Array.prototype.slice.call(arguments,0));return this;},remove:function(A){this.items.remove(A);return this;},render:function(){this.items.each(function(f){if(f.isFormField&&!f.rendered&&document.getElementById(f.id)){f.applyTo(f.id);
-}});return this;},applyToFields:function(o){this.items.each(function(f){Roo.apply(f,o);});return this;},applyIfToFields:function(o){this.items.each(function(f){Roo.applyIf(f,o);});return this;}});Roo.BasicForm=Roo.form.BasicForm;Roo.apply(Roo.form.BasicForm,{popover:{padding:5,isApplied:false,isMasked:false,form:false,target:false,toolTip:false,intervalID:false,maskEl:false,apply:function(){if(this.isApplied){return;
+}});return this;},applyToFields:function(o){this.items.each(function(f){Roo.apply(f,o);});return this;},applyIfToFields:function(o){this.items.each(function(f){Roo.applyIf(f,o);});return this;}});Roo.BasicForm=Roo.form.BasicForm;Roo.apply(Roo.form.BasicForm,{popover:{padding:5,isApplied:false,isMasked:false,form:false,target:false,intervalID:false,maskEl:false,apply:function(){if(this.isApplied){return;
 }this.maskEl={top:Roo.DomHelper.append(Roo.get(document.body),{tag:"div",cls:"x-dlg-mask roo-form-top-mask"},true),left:Roo.DomHelper.append(Roo.get(document.body),{tag:"div",cls:"x-dlg-mask roo-form-left-mask"},true),bottom:Roo.DomHelper.append(Roo.get(document.body),{tag:"div",cls:"x-dlg-mask roo-form-bottom-mask"}
 ,true),right:Roo.DomHelper.append(Roo.get(document.body),{tag:"div",cls:"x-dlg-mask roo-form-right-mask"},true)};this.maskEl.top.enableDisplayMode("block");this.maskEl.left.enableDisplayMode("block");this.maskEl.bottom.enableDisplayMode("block");this.maskEl.right.enableDisplayMode("block");
 Roo.get(document.body).on('click',function(){this.unmask();},this);Roo.get(document.body).on('touchstart',function(){this.unmask();},this);this.isApplied=true},mask:function(A,B){this.form=A;this.target=B;if(!this.form.errorMask||!B.el){return;}var C=this.target.el.findScrollableParent()||this.target.el.findParent('div.x-layout-active-content',100,true)||Roo.get(document.body);
index 7de690e..6689121 100644 (file)
@@ -47488,8 +47488,6 @@ Roo.apply(Roo.form.BasicForm, {
         
         target : false,
         
-        toolTip : false,
-        
         intervalID : false,
         
         maskEl : false,
@@ -47512,20 +47510,6 @@ Roo.apply(Roo.form.BasicForm, {
             this.maskEl.bottom.enableDisplayMode("block");
             this.maskEl.right.enableDisplayMode("block");
             
-//            this.toolTip = new Roo.bootstrap.Tooltip({
-//                cls : 'roo-form-error-popover',
-//                alignment : {
-//                    'left' : ['r-l', [-2,0], 'right'],
-//                    'right' : ['l-r', [2,0], 'left'],
-//                    'bottom' : ['tl-bl', [0,2], 'top'],
-//                    'top' : [ 'bl-tl', [0,-2], 'bottom']
-//                }
-//            });
-//            
-//            this.toolTip.render(Roo.get(document.body));
-//
-//            this.toolTip.el.enableDisplayMode("block");
-            
             Roo.get(document.body).on('click', function(){
                 this.unmask();
             }, this);
index f0d316f..272ebf1 100644 (file)
@@ -25037,8 +25037,6 @@ Roo.apply(Roo.form.BasicForm, {
         
         target : false,
         
-        toolTip : false,
-        
         intervalID : false,
         
         maskEl : false,
@@ -25061,20 +25059,6 @@ Roo.apply(Roo.form.BasicForm, {
             this.maskEl.bottom.enableDisplayMode("block");
             this.maskEl.right.enableDisplayMode("block");
             
-//            this.toolTip = new Roo.bootstrap.Tooltip({
-//                cls : 'roo-form-error-popover',
-//                alignment : {
-//                    'left' : ['r-l', [-2,0], 'right'],
-//                    'right' : ['l-r', [2,0], 'left'],
-//                    'bottom' : ['tl-bl', [0,2], 'top'],
-//                    'top' : [ 'bl-tl', [0,-2], 'bottom']
-//                }
-//            });
-//            
-//            this.toolTip.render(Roo.get(document.body));
-//
-//            this.toolTip.el.enableDisplayMode("block");
-            
             Roo.get(document.body).on('click', function(){
                 this.unmask();
             }, this);
index f11d549..1c3fa61 100644 (file)
@@ -1069,7 +1069,7 @@ if(A===true){return fs;}return Roo.urlDecode(fs);},getFieldValues:function(A){if
 if(f.inputType=='radio'){if(typeof(B[f.getName()])=='undefined'){B[f.getName()]='';}if(!f.el.dom.checked){return;}v=f.el.dom.value;}if((typeof(v)=='object')&&f.getRawValue){v=f.getRawValue();}if(f.name!=f.getName()){B[f.name]=f.getRawValue();}B[f.getName()]=v;
 });return B;},clearInvalid:function(){this.items.each(function(f){f.clearInvalid();});Roo.each(this.childForms||[],function(f){f.clearInvalid();});return this;},reset:function(){this.items.each(function(f){f.reset();});Roo.each(this.childForms||[],function(f){f.reset();
 });this.resetHasChanged();return this;},add:function(){this.items.addAll(Array.prototype.slice.call(arguments,0));return this;},remove:function(A){this.items.remove(A);return this;},render:function(){this.items.each(function(f){if(f.isFormField&&!f.rendered&&document.getElementById(f.id)){f.applyTo(f.id);
-}});return this;},applyToFields:function(o){this.items.each(function(f){Roo.apply(f,o);});return this;},applyIfToFields:function(o){this.items.each(function(f){Roo.applyIf(f,o);});return this;}});Roo.BasicForm=Roo.form.BasicForm;Roo.apply(Roo.form.BasicForm,{popover:{padding:5,isApplied:false,isMasked:false,form:false,target:false,toolTip:false,intervalID:false,maskEl:false,apply:function(){if(this.isApplied){return;
+}});return this;},applyToFields:function(o){this.items.each(function(f){Roo.apply(f,o);});return this;},applyIfToFields:function(o){this.items.each(function(f){Roo.applyIf(f,o);});return this;}});Roo.BasicForm=Roo.form.BasicForm;Roo.apply(Roo.form.BasicForm,{popover:{padding:5,isApplied:false,isMasked:false,form:false,target:false,intervalID:false,maskEl:false,apply:function(){if(this.isApplied){return;
 }this.maskEl={top:Roo.DomHelper.append(Roo.get(document.body),{tag:"div",cls:"x-dlg-mask roo-form-top-mask"},true),left:Roo.DomHelper.append(Roo.get(document.body),{tag:"div",cls:"x-dlg-mask roo-form-left-mask"},true),bottom:Roo.DomHelper.append(Roo.get(document.body),{tag:"div",cls:"x-dlg-mask roo-form-bottom-mask"}
 ,true),right:Roo.DomHelper.append(Roo.get(document.body),{tag:"div",cls:"x-dlg-mask roo-form-right-mask"},true)};this.maskEl.top.enableDisplayMode("block");this.maskEl.left.enableDisplayMode("block");this.maskEl.bottom.enableDisplayMode("block");this.maskEl.right.enableDisplayMode("block");
 Roo.get(document.body).on('click',function(){this.unmask();},this);Roo.get(document.body).on('touchstart',function(){this.unmask();},this);this.isApplied=true},mask:function(A,B){this.form=A;this.target=B;if(!this.form.errorMask||!B.el){return;}var C=this.target.el.findScrollableParent()||this.target.el.findParent('div.x-layout-active-content',100,true)||Roo.get(document.body);