Fixed some yui features in Matrix v2
This commit is contained in:
parent
5169cb5e11
commit
01d2322af6
5 changed files with 140 additions and 40 deletions
|
|
@ -108,9 +108,7 @@ YAHOO.util.Event.addListener(window, "load", function() {
|
|||
},this,true);
|
||||
|
||||
//btnCompare.set("disabled",true);
|
||||
alert(btnCompare.get("disabled"));
|
||||
|
||||
|
||||
//alert(btnCompare.get("disabled"));
|
||||
window.compareFormButton = function() {
|
||||
var compareCheckBoxes = YAHOO.util.Dom.getElementsByClassName('compareCheckBox','input');
|
||||
var checked = 0;
|
||||
|
|
@ -119,7 +117,8 @@ YAHOO.util.Event.addListener(window, "load", function() {
|
|||
checked++;
|
||||
}
|
||||
}
|
||||
if (checked > 1){
|
||||
//alert(maxComparisons);
|
||||
if (checked > 1 && checked < maxComparisons){
|
||||
btnCompare.set("disabled",false);
|
||||
}else{
|
||||
btnCompare.set("disabled",true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue