From b8cb0bf2551cba8d8bc3d26ff6cd210fe512ce56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=93scar=20Gonz=C3=A1lez=20Fern=C3=A1ndez?= Date: Mon, 20 Jun 2011 16:21:23 +0200 Subject: [PATCH] Avoid error when moving a task The setCssClass method was missing in DependencyComponent. FEA: ItEr75S08MigrationZK5 --- .../src/main/resources/web/js/ganttz/DependencyComponent.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ganttzk/src/main/resources/web/js/ganttz/DependencyComponent.js b/ganttzk/src/main/resources/web/js/ganttz/DependencyComponent.js index e06685f44..9b22c520c 100644 --- a/ganttzk/src/main/resources/web/js/ganttz/DependencyComponent.js +++ b/ganttzk/src/main/resources/web/js/ganttz/DependencyComponent.js @@ -10,6 +10,9 @@ ganttz.DependencyComponentBase = zk.$extends(zul.Widget,{ this.$supers('bind_', arguments); this.setupArrow_(); }, + setCSSClass: function(newClass) { + this.$n().setAttribute("class", newClass); + }, draw : function(){throw "draw method must be overwriten by extending classes"}, drawArrow_ : function(coordOrig, coordDest){ switch(this.getDependencyType())