From 0660490c9b64dffcda0ac02bfcac199319f47a0f Mon Sep 17 00:00:00 2001 From: Farruco Sanjurjo Date: Mon, 20 Dec 2010 11:48:48 +0100 Subject: [PATCH] Adding a dependency is cancelled if you click anywhere that's not a task FEA: ItEr02S03MigracionZK5 --- .../src/main/resources/web/js/ganttz/DependencyComponent.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ganttzk/src/main/resources/web/js/ganttz/DependencyComponent.js b/ganttzk/src/main/resources/web/js/ganttz/DependencyComponent.js index cb995cd0f..38f420558 100644 --- a/ganttzk/src/main/resources/web/js/ganttz/DependencyComponent.js +++ b/ganttzk/src/main/resources/web/js/ganttz/DependencyComponent.js @@ -289,8 +289,10 @@ ganttz.UnlinkedDependencyComponent = zk.$extends(ganttz.DependencyComponentBase, var dependency = null; if ((dependency = this._isOverTask()) != null){ this._WGTorigin.consolidateNewDependency(dependency); - ganttz.DependencyList.getInstance().removeChild(this); //A new dependecy line will be created } + /* We remove the dependency line. If the user clicked over a + * task, a new dependecy line will be created */ + ganttz.DependencyList.getInstance().removeChild(this); }, _isOverTask : function() { var tasksArray = jq('div[z\\.type="ganttz.task.Task"]');