projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c5d2c4c
)
Roo/bootstrap/NavSidebarItem.js
author
Alan Knowles
<alan@roojs.com>
Mon, 21 Mar 2016 07:37:06 +0000
(15:37 +0800)
committer
Alan Knowles
<alan@roojs.com>
Mon, 21 Mar 2016 07:37:06 +0000
(15:37 +0800)
Roo/bootstrap/NavSidebarItem.js
patch
|
blob
|
history
diff --git
a/Roo/bootstrap/NavSidebarItem.js
b/Roo/bootstrap/NavSidebarItem.js
index
0d789e5
..
fe026da
100644
(file)
--- a/
Roo/bootstrap/NavSidebarItem.js
+++ b/
Roo/bootstrap/NavSidebarItem.js
@@
-58,11
+58,11
@@
Roo.extend(Roo.bootstrap.NavSidebarItem, Roo.bootstrap.NavItem, {
tag: 'li',
cls: '',
cn: [ a ]
- }
+ }
;
var span = {
tag: 'span',
html : this.html || ''
- }
+ }
;
if (this.active) {
@@
-102,10
+102,10
@@
Roo.extend(Roo.bootstrap.NavSidebarItem, Roo.bootstrap.NavItem, {
initEvents : function()
{
this.el.on('click', this.onClick, this);
- Roo.log("set badgeEl? ", this.badge);
+
if(this.badge !== ''){
- Roo.log("set badgeEl");
+
this.badgeEl = this.el.select('.badge', true).first().setVisibilityMode(Roo.Element.DISPLAY);
}