From: Alan Knowles Date: Fri, 8 Jan 2021 04:43:09 +0000 (+0800) Subject: roojs-bootstrap.js X-Git-Url: http://git.roojs.org/?p=roojs1;a=commitdiff_plain;h=bb9bf626b63b5ed33276ed636f4f2dbd3f978cda roojs-bootstrap.js roojs-bootstrap-debug.js --- diff --git a/roojs-bootstrap-debug.js b/roojs-bootstrap-debug.js index 0e3c7a8ef8..1affb44c9f 100644 --- a/roojs-bootstrap-debug.js +++ b/roojs-bootstrap-debug.js @@ -6704,7 +6704,8 @@ Roo.extend(Roo.bootstrap.breadcrumb.Item, Roo.bootstrap.Component, { { var cfg = { - tag: 'li' + tag: 'li', + cls : 'breadcrumb-item' + (this.active ? ' active' : '') }; if (this.href !== false) { cfg.cn = [{ diff --git a/roojs-bootstrap.js b/roojs-bootstrap.js index 6bb7ecbc4f..a01bfb91ba 100644 --- a/roojs-bootstrap.js +++ b/roojs-bootstrap.js @@ -276,7 +276,7 @@ return;}this.el.removeClass('disabled');return;},setActive:function(A){if(this.a Roo.bootstrap.breadcrumb.Nav=function(A){Roo.bootstrap.breadcrumb.Nav.superclass.constructor.call(this,A);};Roo.extend(Roo.bootstrap.breadcrumb.Nav,Roo.bootstrap.Component,{getAutoCreate:function(){var A={tag:'nav',cn:[{tag:'ol',cls:'breadcrumb'}]};return A; },initEvents:function(){this.olEl=this.el.select('ol',true).first();},getChildContainer:function(){return this.olEl;}}); // Roo/bootstrap/breadcrumb/Item.js -Roo.bootstrap.breadcrumb.Item=function(A){Roo.bootstrap.breadcrumb.Item.superclass.constructor.call(this,A);this.addEvents({"click":true});};Roo.extend(Roo.bootstrap.breadcrumb.Item,Roo.bootstrap.Component,{href:false,html:'',getAutoCreate:function(){var A={tag:'li'} +Roo.bootstrap.breadcrumb.Item=function(A){Roo.bootstrap.breadcrumb.Item.superclass.constructor.call(this,A);this.addEvents({"click":true});};Roo.extend(Roo.bootstrap.breadcrumb.Item,Roo.bootstrap.Component,{href:false,html:'',getAutoCreate:function(){var A={tag:'li',cls:'breadcrumb-item'+(this.active?' active':'')} ;if(this.href!==false){A.cn=[{tag:'a',href:this.href,html:this.html}];}else{A.html=this.html;}return A;},initEvents:function(){if(this.href){this.el.select('a',true).first().onClick(this.onClick,this)}},onClick:function(e){e.preventDefault();this.fireEvent('click',this,e); }}); // Roo/bootstrap/Row.js