From 436b2227713f8cd5e0b7da6e9d1216eb17c2a941 Mon Sep 17 00:00:00 2001 From: Chrysostomos Kolovos Date: Tue, 20 May 2014 13:02:31 +0300 Subject: [PATCH] Chrysostomos for scheduler --- plugins/scheduler2/static/js/scheduler-helpers.js | 2 +- plugins/scheduler2/static/js/scheduler2.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/scheduler2/static/js/scheduler-helpers.js b/plugins/scheduler2/static/js/scheduler-helpers.js index c55c6356..383cf1cf 100755 --- a/plugins/scheduler2/static/js/scheduler-helpers.js +++ b/plugins/scheduler2/static/js/scheduler-helpers.js @@ -148,7 +148,7 @@ function _schedulerSetStatusSlot(slotId, rowIndex, resourceIndex, classText) { for (var s = 0; s < maxg; s++) { if (tmpVS.groupIndex != s) { SchedulerDataViewData[rowIndex].leases[startSlotId].status = classText; - SchedulerData[rowIndex].leases[startSlotId].status = classText; + SchedulerData[resourceIndex].leases[startSlotId].status = classText; } startSlotId++; } diff --git a/plugins/scheduler2/static/js/scheduler2.js b/plugins/scheduler2/static/js/scheduler2.js index e1c6f3f0..27300e33 100755 --- a/plugins/scheduler2/static/js/scheduler2.js +++ b/plugins/scheduler2/static/js/scheduler2.js @@ -345,6 +345,7 @@ var tmpSchedulerLeases = []; for (var i = 0; i < SchedulerData.length; i++) { var tpmR = SchedulerData[i]; + //for capturing start and end of the lease var newLeaseStarted = false; for (var j = 0; j < tpmR.leases.length; j++) { var tpmL = tpmR.leases[j]; -- 2.43.0