Scheduler2 plugin: Queries handled by the plugin = query (resource in slice), query_l...
[myslice.git] / plugins / scheduler2 / static / js / scheduler-helpers.js
index d6f3224..c55c635 100755 (executable)
@@ -127,6 +127,7 @@ function schedulerFindDuration(startTime, endTime, granularity) {
 //\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
@@ -136,6 +137,7 @@ function schedulerFreeSlot(slotId, rowIndex, resourceIndex) {
 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
@@ -196,4 +198,4 @@ function schedulerCompareOnDay(dateOne, dateTwo) {
         return 0;\r
     }\r
 \r
-}
\ No newline at end of file
+}\r