Chrysostomos for scheduler
[myslice.git] / plugins / scheduler2 / static / js / scheduler-table-selector.js
index 3a9a070..6f5f4a9 100755 (executable)
@@ -82,7 +82,7 @@ function selectRange(isTemp) {
     if (!schedulerCtrlPressed)\r
         $("#" + schedulerTblId + "  td.selected, #" + schedulerTblId + "  td.selected_tmp").each(function() {\r
             $(this).removeClass('selected selected_tmp').addClass('free');\r
-            schedulerFreeSlot($(this).data('slotid'), $(this).siblings('th').data('resourceindex'));\r
+            schedulerFreeSlot($(this).data('slotid'), $(this).siblings('th').data('rowindex'), $(this).siblings('th').data('resourceindex'));\r
         });\r
 \r
     tmp_scheduler_table_dragStart_td = scheduler_table_dragStart_td;\r
@@ -119,7 +119,7 @@ function selectRange(isTemp) {
                     if (isTemp)\r
                         $(cell).addClass("free_tmp");\r
                     else{\r
-                        schedulerFreeSlot($(cell).data('slotid'), $(cell).siblings('th').data('resourceindex'));\r
+                        schedulerFreeSlot($(cell).data('slotid'), $(cell).siblings('th').data('rowindex'), $(cell).siblings('th').data('resourceindex'));\r
                         $(cell).addClass("free");\r
                     }\r
                     break;\r
@@ -128,7 +128,7 @@ function selectRange(isTemp) {
                     if (isTemp)\r
                         $(cell).addClass("selected_tmp");\r
                     else {\r
-                        schedulerSelectSlot($(cell).data('slotid'), $(cell).siblings('th').data('resourceindex'));\r
+                        schedulerSelectSlot($(cell).data('slotid'), $(cell).siblings('th').data('rowindex'), $(cell).siblings('th').data('resourceindex'));\r
                         $(cell).addClass("selected");\r
                     }\r
                     break;\r
@@ -137,7 +137,7 @@ function selectRange(isTemp) {
                     if (isTemp)\r
                         $(cell).addClass("selected_tmp");\r
                     else {\r
-                        schedulerSelectSlot($(cell).data('slotid'), $(cell).siblings('th').data('resourceindex'));\r
+                        schedulerSelectSlot($(cell).data('slotid'), $(cell).siblings('th').data('rowindex'), $(cell).siblings('th').data('resourceindex'));\r
                         $(cell).addClass("selected");\r
                     }\r
                     break;\r
@@ -146,7 +146,7 @@ function selectRange(isTemp) {
                     if (isTemp)\r
                         $(cell).addClass("free_tmp");\r
                     else {\r
-                        schedulerFreeSlot($(cell).data('slotid'), $(cell).siblings('th').data('resourceindex'));\r
+                        schedulerFreeSlot($(cell).data('slotid'), $(cell).siblings('th').data('rowindex'), $(cell).siblings('th').data('resourceindex'));\r
                         $(cell).addClass("free");\r
                     }\r
                     break;\r