schedule for weeks
This commit is contained in:
@ -191,7 +191,6 @@
|
||||
var ctx = $("#scheduleCanvas")[0].getContext("2d");
|
||||
var currentDayRecords = JSON.parse('[(${schedule})]');
|
||||
var scheduleRecords = currentDayRecords.schedule;
|
||||
var daySlot = currentDayRecords.daySlot;
|
||||
for (var i = 0; i < scheduleRecords.length; i++) {
|
||||
var r = scheduleRecords[i];
|
||||
var cssClass = r.billing;
|
||||
@ -206,7 +205,7 @@
|
||||
color = "#00aa00";
|
||||
}
|
||||
/* daySlot 7 = sunday, but this should be slot 0 */
|
||||
schedule.drawSlot(ctx, daySlot > 6 ? 0 : daySlot, r.from, r.until, "black", color);
|
||||
schedule.drawSlot(ctx, r.daySlot > 6 ? 0 : r.daySlot, r.from, r.until, "black", color);
|
||||
}
|
||||
var localeUrl = '[[@{/js/dataTables/de.json}]]';
|
||||
$("#project_table").DataTable({
|
||||
|
Reference in New Issue
Block a user