Ignore:
Timestamp:
12/29/14 22:06:33 (10 years ago)
Author:
tbretz
Message:
If only have of the schedule is trasmitted, also the first entry must be checked about the limit not just the order of all entries.
File:
1 edited

Legend:

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

    r17724 r18044  
    3131        if (!el.valueAsDate)
    3232        {
    33             el.setAttribute("style", "color:#000000");
    34             return;
     33//            el.setAttribute("style", "color:#000000");
     34            continue;
    3535        }
    3636
     
    144144        input1p.setAttribute("hidden", "true");
    145145    // FIXME: Enable if this is the last "+" in tonight
    146     if (disabled)
     146    if (disabled && ! (table.isTonight && row.last))
    147147        input1p.setAttribute("disabled", "true");
    148148    input1p.onclick = function()
     
    453453        table.cutTime = "12:00:00";
    454454
    455     // Now loop over all rows and add them oine by one to the table
     455    // Now loop over all rows and add them one by one to the table
    456456    for (var i=0; i<schedule.length; i++)
    457457    {
     458        schedule[i].last   = schedule[schedule.length-1].fStart==schedule[i].fStart;
    458459        schedule[i].fStart = schedule[i].fStart.replace('-', '/');
    459460        schedule[i].fStart = schedule[i].fStart.replace('-', '/');
Note: See TracChangeset for help on using the changeset viewer.