Changeset 18044 for trunk/FACT++/www/schedule
- Timestamp:
- 12/29/14 22:06:33 (10 years ago)
- Location:
- trunk/FACT++/www/schedule
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/www/schedule/index.js
r17724 r18044 31 31 if (!el.valueAsDate) 32 32 { 33 el.setAttribute("style", "color:#000000");34 return;33 // el.setAttribute("style", "color:#000000"); 34 continue; 35 35 } 36 36 … … 144 144 input1p.setAttribute("hidden", "true"); 145 145 // FIXME: Enable if this is the last "+" in tonight 146 if (disabled )146 if (disabled && ! (table.isTonight && row.last)) 147 147 input1p.setAttribute("disabled", "true"); 148 148 input1p.onclick = function() … … 453 453 table.cutTime = "12:00:00"; 454 454 455 // Now loop over all rows and add them o ine by one to the table455 // Now loop over all rows and add them one by one to the table 456 456 for (var i=0; i<schedule.length; i++) 457 457 { 458 schedule[i].last = schedule[schedule.length-1].fStart==schedule[i].fStart; 458 459 schedule[i].fStart = schedule[i].fStart.replace('-', '/'); 459 460 schedule[i].fStart = schedule[i].fStart.replace('-', '/'); -
trunk/FACT++/www/schedule/save.php
r17707 r18044 96 96 // Note that there is no sanity check yet, therefore the data and the 97 97 // time variable must be consistent 98 // FIXME: This should be 11:59:59 the prev day to allow for 12:00 being 99 // the first possible entry, but this makes things below more complicated 98 100 $time = isset($_POST['t']) ? $_POST['t'] : "12:00:00"; 99 101 … … 160 162 // ---------------------------------------------------------------- 161 163 164 $last = $cut; 165 162 166 foreach ($data as $row) 163 167 { … … 183 187 $t = $d['hour']<12 ? $nextDay." ".$t : $day." ".$t; 184 188 185 if (!isset($last)) 186 { 187 $last = $t; 188 } 189 else 190 { 191 // Check all but the last task in a measurement whether 192 // the are not unlimited 193 if ($last==$t) 194 { 195 if ($measurements[$m]['fIsUnlimited']==true) 196 die("Unlimited task '".$measurements[$m]['fMeasurement']."' detected before end of observation\n[".$last."|".($id-1)."]"); 197 } 198 199 if ($last>$t) 200 die("Times not sequential\n[".$last."|".$t."]"); 201 $last = $t; 202 } 189 // Check all but the last task in a measurement whether 190 // the are not unlimited 191 if ($last==$t) 192 { 193 if ($measurements[$m]['fIsUnlimited']==true) 194 die("Unlimited task '".$measurements[$m]['fMeasurement']."' detected before end of observation\n[".$last."|".($id-1)."]"); 195 } 196 197 if ($last>$t) 198 die("Times not sequential\n[".$last."|".$t."]"); 199 200 $last = $t; 203 201 204 202 $m = $row[1]; // measurement
Note:
See TracChangeset
for help on using the changeset viewer.