projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a35531e
)
Roo/bootstrap/CheckBox.js
author
edward
<edward@roojs.com>
Mon, 5 Oct 2015 03:14:34 +0000
(11:14 +0800)
committer
edward
<edward@roojs.com>
Mon, 5 Oct 2015 03:14:34 +0000
(11:14 +0800)
Roo/bootstrap/CheckBox.js
patch
|
blob
|
history
diff --git
a/Roo/bootstrap/CheckBox.js
b/Roo/bootstrap/CheckBox.js
index
a321f85
..
136ecb5
100644
(file)
--- a/
Roo/bootstrap/CheckBox.js
+++ b/
Roo/bootstrap/CheckBox.js
@@
-331,7
+331,27
@@
Roo.extend(Roo.bootstrap.CheckBox, Roo.bootstrap.Input, {
validateGroup : function()
{
+ if(!this.groupId){
+ return (this.getValue() == this.inputValue) ? true : false;
+ }
+
+ var group = Roo.bootstrap.CheckBox.get(this.groupId);
+
+ if(!group){
+ return false;
+ }
+
+ var r = false;
+
+ for(var i in group){
+ if(r){
+ break;
+ }
+
+ r = (group[i].getValue() == group[i].inputValue) ? true : false;
+ }
+ return r;
}
});