From: Alan Knowles Date: Thu, 21 Feb 2019 08:59:59 +0000 (+0800) Subject: roojs-bootstrap.js X-Git-Url: http://git.roojs.org/?p=roojs1;a=commitdiff_plain;h=b29e73fd35c0c83c5e33e477026104768175360f roojs-bootstrap.js roojs-bootstrap-debug.js Roo/bootstrap/Body.js Roo/bootstrap/Component.js --- diff --git a/Roo/bootstrap/Body.js b/Roo/bootstrap/Body.js index 2a808e296d..84d09d6bc8 100644 --- a/Roo/bootstrap/Body.js +++ b/Roo/bootstrap/Body.js @@ -28,7 +28,7 @@ Roo.bootstrap.Body = function(config){ } if (config.do_render) { this.onRender(config.do_render, ''); - this.xaddChildren(config.items); + this.xAddChildren(config.items); } }; diff --git a/Roo/bootstrap/Component.js b/Roo/bootstrap/Component.js index b5789bd880..c14252dd19 100644 --- a/Roo/bootstrap/Component.js +++ b/Roo/bootstrap/Component.js @@ -197,7 +197,7 @@ Roo.extend(Roo.bootstrap.Component, Roo.BoxComponent, { if (!has_flexy_each || !build_from_html || is_body || !page_has_body) { if(!has_flexy_if || typeof(tree.name) == 'undefined' || !build_from_html || is_body || !page_has_body){ //return this.addxtypeChild(tree,cntr, is_body); - return this.addxtypeChild(cn, cntr, is_body); + return this.addxtypeChild(tree, cntr, is_body); } var echild =self_cntr_el ? self_cntr_el.child('>*[name=' + tree.name + ']') : false; diff --git a/roojs-bootstrap-debug.js b/roojs-bootstrap-debug.js index 2f44740d61..5f11a8c3b2 100644 --- a/roojs-bootstrap-debug.js +++ b/roojs-bootstrap-debug.js @@ -474,7 +474,7 @@ Roo.bootstrap.Body = function(config){ } if (config.do_render) { this.onRender(config.do_render, ''); - this.addxtypeChildren(config.items); + this.xAddChildren(config.items); } }; diff --git a/roojs-bootstrap.js b/roojs-bootstrap.js index f4dcea525c..453349f7da 100644 --- a/roojs-bootstrap.js +++ b/roojs-bootstrap.js @@ -16,7 +16,7 @@ delete A.items;return cn;},addxtypeChildren:function(A,B){var C=[];if(!A||!A.len },getVisibilityEl:function(){if(typeof(this.visibilityEl)=='object'){return this.visibilityEl;}if(typeof(this.visibilityEl)=='string'){return this.visibilityEl=='parent'?this.parent().getEl():this.getEl();}return this.getEl();},show:function(){if(!this.getVisibilityEl()){return; }this.getVisibilityEl().removeClass(['hidden','d-none']);this.fireEvent('show',this);},hide:function(){if(!this.getVisibilityEl()){return;}this.getVisibilityEl().addClass(['hidden','d-none']);this.fireEvent('hide',this);}}); // Roo/bootstrap/Body.js -Roo.bootstrap.Body=function(A){A=A||{};Roo.bootstrap.Body.superclass.constructor.call(this,A);this.el=Roo.get(A.el?A.el:document.body);if(this.cls&&this.cls.length){Roo.get(document.body).addClass(this.cls);}if(A.do_render){this.onRender(A.do_render,'');this.addxtypeChildren(A.items); +Roo.bootstrap.Body=function(A){A=A||{};Roo.bootstrap.Body.superclass.constructor.call(this,A);this.el=Roo.get(A.el?A.el:document.body);if(this.cls&&this.cls.length){Roo.get(document.body).addClass(this.cls);}if(A.do_render){this.onRender(A.do_render,'');this.xAddChildren(A.items); }};Roo.extend(Roo.bootstrap.Body,Roo.bootstrap.Component,{do_render:false,is_body:true,autoCreate:{cls:'container'},onRender:function(ct,A){if(!this.do_render){return;}this.el=Roo.get(this.do_render);}}); // Roo/bootstrap/ButtonGroup.js Roo.bootstrap.ButtonGroup=function(A){Roo.bootstrap.ButtonGroup.superclass.constructor.call(this,A);};Roo.extend(Roo.bootstrap.ButtonGroup,Roo.bootstrap.Component,{size:'',align:'',direction:'',toolbar:false,btn:true,getAutoCreate:function(){var A={cls:'btn-group',html:null}