Roo/bootstrap/Container.js
authorAlan Knowles <alan@roojs.com>
Wed, 17 Feb 2016 03:21:10 +0000 (11:21 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 17 Feb 2016 03:21:10 +0000 (11:21 +0800)
roojs-bootstrap.js
roojs-bootstrap-debug.js

Roo/bootstrap/Container.js
roojs-bootstrap-debug.js
roojs-bootstrap.js

index aa25f05..0147a89 100644 (file)
@@ -160,7 +160,7 @@ Roo.extend(Roo.bootstrap.Container, Roo.bootstrap.Component,  {
                     {
                         tag: 'span',
                         cls : 'panel-title',
-                        html : (this.expandable ? '&nbps;' : '') + this.header
+                        html : (this.expandable ? '&nbsp;' : '') + this.header
                     },
                     {
                         tag: 'span',
index 89cec9a..317d02b 100644 (file)
@@ -1126,7 +1126,7 @@ Roo.extend(Roo.bootstrap.Container, Roo.bootstrap.Component,  {
                     {
                         tag: 'span',
                         cls : 'panel-title',
-                        html : (this.expandable ? '&nbps;' : '') + this.header
+                        html : (this.expandable ? '&nbsp;' : '') + this.header
                     },
                     {
                         tag: 'span',
index 7441ad5..9729e82 100644 (file)
@@ -42,7 +42,7 @@ return;}A.cls+=' col-'+D+'-'+B[D];});if(this.hidden){A.cls+=' hidden';}if(this.a
 Roo.bootstrap.Container=function(A){Roo.bootstrap.Container.superclass.constructor.call(this,A);this.addEvents({"expand":true,"collapse":true});};Roo.extend(Roo.bootstrap.Container,Roo.bootstrap.Component,{jumbotron:false,well:'',panel:'',header:'',footer:'',sticky:'',tag:false,alert:false,fa:false,icon:false,expandable:false,rheader:'',expanded:true,getChildContainer:function(){if(!this.el){return false;
 }if(this.panel.length){return this.el.select('.panel-body',true).first();}return this.el;},getAutoCreate:function(){var A={tag:this.tag||'div',html:'',cls:''};if(this.jumbotron){A.cls='jumbotron';}if(this.sticky.length){var bd=Roo.get(document.body);if(!bd.hasClass('bootstrap-sticky')){bd.addClass('bootstrap-sticky');
 Roo.select('html',true).setStyle('height','100%');}A.cls+='bootstrap-sticky-'+this.sticky;}if(this.well.length){switch(this.well){case 'lg':case 'sm':A.cls+=' well well-'+this.well;break;default:A.cls+=' well';break;}}if(this.hidden){A.cls+=' hidden';}if(this.alert&&["success","info","warning","danger"].indexOf(this.alert)>-1){A.cls+=' alert alert-'+this.alert;
-}var B=A;if(this.panel.length){A.cls+=' panel panel-'+this.panel;A.cn=[];if(this.header.length){var h=[];if(this.expandable){A.cls=A.cls+' expandable';h.push({tag:'i',cls:(this.expanded?'fa fa-minus':'fa fa-plus')});}h.push({tag:'span',cls:'panel-title',html:(this.expandable?'&nbps;':'')+this.header}
+}var B=A;if(this.panel.length){A.cls+=' panel panel-'+this.panel;A.cn=[];if(this.header.length){var h=[];if(this.expandable){A.cls=A.cls+' expandable';h.push({tag:'i',cls:(this.expanded?'fa fa-minus':'fa fa-plus')});}h.push({tag:'span',cls:'panel-title',html:(this.expandable?'&nbsp;':'')+this.header}
 ,{tag:'span',cls:'panel-header-right',html:this.rheader});A.cn.push({cls:'panel-heading',cn:h});}B=false;A.cn.push({cls:'panel-body'+(this.expanded?'':' hide'),html:this.html});if(this.footer.length){A.cn.push({cls:'panel-footer',html:this.footer});}}if(B){B.html=this.html||A.html;
 if(this.fa){B.html='<i class="fa fa-'+this.fa+'"></i>'+B.html;}if(this.icon){B.html='<i class="glyphicon glyphicon-'+this.icon+'"></i>'+B.html;}}if((!this.cls||!this.cls.length)&&(!A.cls||!A.cls.length)){A.cls='container';}return A;},initEvents:function(){if(!this.expandable){return;
 }var A=this.headerEl();if(!A){return;}A.on('click',this.onToggleClick,this);},onToggleClick:function(){var A=this.headerEl();if(!A){return;}if(this.expanded){this.collapse();return;}this.expand();},expand:function(){if(this.fireEvent('expand',this)){this.expanded=true;