Ignore:
Timestamp:
03/02/11 14:03:38 (2 years ago)
Author:
Jose Benito <jose.benito.gonzalez@…>
Branches:
master, burotel, hello-world-walkthrough, ipv6, v0.98-series, v0.98.2, v0.98.3, v0.98b1, v0.98b2, v0.99, b8c30da8ebdbdcbd675a873997cc3e95f567de49, 4287315ec967a3da168d83963c14001db8487d53
Children:
665616
Parents:
53b88f
git-author:
Alexis Castilla Hernandez <alexis.castilla.hernandez@…> (02/21/11 17:16:36)
git-committer:
Jose Benito <jose.benito.gonzalez@…> (03/02/11 14:03:38)
Message:

[FIX] Bugs of the new component in IE 7 and IE 8

File:
1 edited

Legend:

Unmodified
Added
Removed
  • indico/MaKaC/webinterface/tpls/ConfReviewingAssignContributions.tpl

    r53b88f rec3146  
    504504    //checkbox.dom.value = contribution.id; // has to be added after constructor because of IE 
    505505    */ 
    506     var checkbox = Html.input('checkbox', {id: id, name:name, onchange:"isSelected("+contribution.id+");"}); 
     506    var checkbox = Html.input('checkbox', {id: id, name:name});//, onclick:"isSelected("+contribution.id+");" 
     507    checkbox.dom.onclick = function () { // the function is here again in order to avoid problems with IE 
     508        var rowId = "row_" + contribution.id; 
     509        var elem = $E(rowId); 
     510        var checkboxId = "cb" + contribution.id; 
     511        var checkbox = $E(checkboxId); 
     512        if (checkbox.dom.checked == true) { 
     513            elem.dom.style.backgroundColor = '#CDEB8B'; 
     514        } else { 
     515            elem.dom.style.backgroundColor = 'transparent'; 
     516        } 
     517    }; 
    507518    checkbox.dom.value = contribution.id; 
    508519 
Note: See TracChangeset for help on using the changeset viewer.