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){
// return true;
// });
// gantt.attachEvent("onAfterTaskUpdate", function(id,item){
// });
gantt.attachEvent("onTaskRowClick", function(id,row){
activityId = id;
});
gantt.ext.inlineEditors.attachEvent("onBeforeEditStart", function(state){
let id = parseInt(state.id)

Loading…
Cancel
Save