//\r
// Set Select - Free Slots *******Start\r
function schedulerSelectSlot(slotId, rowIndex, resourceIndex) {\r
+ console.log('timeslot selected');\r
_schedulerSetStatusSlot(slotId, rowIndex, resourceIndex, 'selected');\r
}\r
function schedulerFreeSlot(slotId, rowIndex, resourceIndex) {\r
function _schedulerSetStatusSlot(slotId, rowIndex, resourceIndex, classText) {\r
var tmpVS = SchedulerDataViewData[rowIndex].leases[slotId]; // for the display\r
var tmpS = SchedulerData[resourceIndex].leases[slotId]; // for the data\r
+ console.log(SchedulerData[resourceIndex].id);\r
tmpVS.status = classText;\r
tmpS.status = classText;\r
//select other from the group in the same granularity\r
for (var s = 0; s < maxg; s++) {\r
if (tmpVS.groupIndex != s) {\r
SchedulerDataViewData[rowIndex].leases[startSlotId].status = classText;\r
- SchedulerData[rowIndex].leases[startSlotId].status = classText;\r
+ SchedulerData[resourceIndex].leases[startSlotId].status = classText;\r
}\r
startSlotId++;\r
}\r
return 0;\r
}\r
\r
-}
\ No newline at end of file
+}\r