From: Alan Knowles Date: Fri, 8 Jan 2021 04:48:00 +0000 (+0800) Subject: sync X-Git-Url: http://git.roojs.org/?p=roojs1;a=commitdiff_plain;h=828ce79f5953c9ad92df7afcf02c5cfd1d0ed1db sync --- diff --git a/Roo/bootstrap/breadcrumb/Nav.js b/Roo/bootstrap/breadcrumb/Nav.js index 0f5dffe276..f2cfef7802 100644 --- a/Roo/bootstrap/breadcrumb/Nav.js +++ b/Roo/bootstrap/breadcrumb/Nav.js @@ -18,6 +18,8 @@ * @param {Object} config The config object */ +Roo.namespace('Roo.bootstrap.breadcrumb'); + Roo.bootstrap.breadcrumb.Nav = function(config){ Roo.bootstrap.breadcrumb.Nav.superclass.constructor.call(this, config); diff --git a/roojs-bootstrap-debug.js b/roojs-bootstrap-debug.js index 1affb44c9f..0766025c1e 100644 --- a/roojs-bootstrap-debug.js +++ b/roojs-bootstrap-debug.js @@ -6621,6 +6621,8 @@ Roo.extend(Roo.bootstrap.NavSidebarItem, Roo.bootstrap.NavItem, { * @param {Object} config The config object */ +Roo.namespace('Roo.bootstrap.breadcrumb'); + Roo.bootstrap.breadcrumb.Nav = function(config){ Roo.bootstrap.breadcrumb.Nav.superclass.constructor.call(this, config); diff --git a/roojs-bootstrap.js b/roojs-bootstrap.js index a01bfb91ba..65e980d77b 100644 --- a/roojs-bootstrap.js +++ b/roojs-bootstrap.js @@ -273,8 +273,8 @@ return;}if(this.preventDefault){e.preventDefault();}this.fireEvent('click',this, return;}this.el.removeClass('disabled');return;},setActive:function(A){if(this.active==A){return;}this.active=A;if(A){this.el.addClass('active');return;}this.el.removeClass('active');return;},isActive:function(){return this.active;},setBadge:function(A){if(!this.badgeEl){return; }this.badgeEl.dom.innerHTML=A;}}); // Roo/bootstrap/breadcrumb/Nav.js -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.namespace('Roo.bootstrap.breadcrumb');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',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);