Fixed some yui features in Matrix v2

This commit is contained in:
Yung Han Khoe 2008-11-19 03:40:28 +00:00
parent 5169cb5e11
commit 01d2322af6
5 changed files with 140 additions and 40 deletions

View file

@ -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);