Changeset 13943


Ignore:
Timestamp:
05/27/12 18:54:03 (13 years ago)
Author:
tbretz
Message:
Replaced forward and backward onlick by inline functions.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/www/smartfact/index.js

    r13935 r13943  
    477477        var tr = $new("tr");
    478478        tr.setAttribute("class", "row");
     479
     480        var cols0 = cols[0];
    479481        if (valid(cols[0]))
    480             tr.setAttribute("onclick", "this.style.background='#ccb'; loadPage('"+cols[0]+"', "+z+", -1);");
     482            tr.onclick = function () { this.style.background='#ccb'; loadPage(cols0, z, -1); };
     483
     484        var cols3 = cols[3];
    481485        if (valid(cols[3]))
    482             tr.setAttribute("onclick", "this.style.background='#ccb'; loadPage('"+cols[3]+"', "+z+", +1);");
     486            tr.onclick = function () { this.style.background='#cbb'; loadPage(cols3, z, +1); };
    483487
    484488        var td0 = $new("td");
Note: See TracChangeset for help on using the changeset viewer.