Browse Source

add listener to update activityId based on row click

pull/1/head
Yusuf 2 years ago
parent
commit
0c08b72159
  1. 10
      src/function/ganttEvent.js

10
src/function/ganttEvent.js

@ -10,13 +10,9 @@ gantt.attachEvent("onAfterTaskAdd", function(id,item){
} }
}); });
// gantt.attachEvent("onTaskClick", function(id,e){ gantt.attachEvent("onTaskRowClick", function(id,row){
// return true; activityId = id;
// }); });
// gantt.attachEvent("onAfterTaskUpdate", function(id,item){
// });
gantt.ext.inlineEditors.attachEvent("onBeforeEditStart", function(state){ gantt.ext.inlineEditors.attachEvent("onBeforeEditStart", function(state){
let id = parseInt(state.id) let id = parseInt(state.id)

Loading…
Cancel
Save