projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
92bcee0
)
Roo/bootstrap/NavSidebarItem.js
author
edward
<edward@roojs.com>
Mon, 21 Mar 2016 05:34:53 +0000
(13:34 +0800)
committer
edward
<edward@roojs.com>
Mon, 21 Mar 2016 05:34:53 +0000
(13:34 +0800)
Roo/bootstrap/NavSidebarItem.js
patch
|
blob
|
history
diff --git
a/Roo/bootstrap/NavSidebarItem.js
b/Roo/bootstrap/NavSidebarItem.js
index
8f7b956
..
3fc73a0
100644
(file)
--- a/
Roo/bootstrap/NavSidebarItem.js
+++ b/
Roo/bootstrap/NavSidebarItem.js
@@
-111,6
+111,32
@@
Roo.extend(Roo.bootstrap.NavSidebarItem, Roo.bootstrap.NavItem, {
}
this.fireEvent('click', this);
+ },
+
+ disable : function()
+ {
+ this.setDisabled(true);
+ },
+
+ enable : function()
+ {
+ this.setDisabled(false);
+ },
+
+ setDisabled : function(state)
+ {
+ if(this.disabled == state){
+ return;
+ }
+
+ this.disabled = state;
+
+ if (state) {
+ this.el.addClass('disabled');
+ return;
+ }
+
+ this.el.removeClass('disabled');
}