From 866fbb65bcced4635e13d32d845d90598b9f38f4 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Mon, 23 Jun 2014 17:17:34 +0000 Subject: [PATCH] - Refresh filter even if it's not dirty, since it changed - Bind delete prompt to right click on link while avoiding conflict with action system --- etemplate/js/et2_widget_gantt.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/etemplate/js/et2_widget_gantt.js b/etemplate/js/et2_widget_gantt.js index f1a8dff4c1..764ea0a8a7 100644 --- a/etemplate/js/et2_widget_gantt.js +++ b/etemplate/js/et2_widget_gantt.js @@ -445,7 +445,15 @@ var et2_gantt = et2_valueWidget.extend([et2_IResizeable,et2_IInput], }); this.gantt.attachEvent("onContextMenu",function(taskId, linkId, e) { - gantt_widget._link_task(taskId); + if(taskId) + { + gantt_widget._link_task(taskId); + } + else if (linkId) + { + this._delete_link_handler(linkId,e) + e.stopPropagation(); + } return false; }) // Double click @@ -576,7 +584,7 @@ var et2_gantt = et2_valueWidget.extend([et2_IResizeable,et2_IInput], var result = widget_change.call(_widget,_node); // Update filters - if(result && _widget.isDirty()) { + if(result) { // Update dirty _widget._oldValue = _widget.getValue();