Changeset 13716 for trunk/FACT++/www


Ignore:
Timestamp:
05/14/12 14:32:03 (13 years ago)
Author:
tbretz
Message:
Improved relating the rows in the table with the lines in the file.
File:
1 edited

Legend:

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

    r13703 r13716  
    591591            if (cols.length>2 && cols[2].length>0)
    592592            {
    593                 cell2.id = "data"+counter;
     593                cell2.id = "data"+z+"-"+counter;
    594594                cell2.setAttribute("data-form",  cols[2]);
    595595                cell2.appendChild(document.createTextNode("---"));
     
    928928            continue;
    929929
    930         if (tbody.rows[line-1]==undefined)
    931             continue;
    932 
    933         var c = tbody.rows[line-1].cells[1];
    934         if (c == undefined)
    935             continue;
    936 
    937         var e = c.childNodes[0].rows[0].cells[1];
     930        var e = document.getElementById("data"+z+"-"+line);
    938931        if (e == undefined)
    939932            continue;
Note: See TracChangeset for help on using the changeset viewer.