projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8f040d7
)
Roo/bootstrap/NavProgressItem.js
author
edward
<edward@roojs.com>
Thu, 10 Mar 2016 08:46:15 +0000
(16:46 +0800)
committer
edward
<edward@roojs.com>
Thu, 10 Mar 2016 08:46:15 +0000
(16:46 +0800)
Roo/bootstrap/NavProgressItem.js
patch
|
blob
|
history
diff --git
a/Roo/bootstrap/NavProgressItem.js
b/Roo/bootstrap/NavProgressItem.js
index
545d3c2
..
8e74e14
100644
(file)
--- a/
Roo/bootstrap/NavProgressItem.js
+++ b/
Roo/bootstrap/NavProgressItem.js
@@
-122,14
+122,13
@@
Roo.extend(Roo.bootstrap.NavProgressItem, Roo.bootstrap.Component, {
this.active = state;
- if (this.el.hasClass('active')) {
- this.el.removeClass('active');
- }
-
if (state) {
this.el.addClass('active');
+ return;
}
+ this.el.removeClass('active');
+
return;
},
@@
-140,6
+139,7
@@
Roo.extend(Roo.bootstrap.NavProgressItem, Roo.bootstrap.Component, {
}
this.disabled = state;
+
if (!state) {
this.el.removeClass('disabled');
} else if (!this.el.hasClass('disabled')) {