Fixed bug on TaskComponent widget-class

* A string with values "true"/"false" was treated as if it was a proper boolean. As a result the test always succeeded

FEA: ItEr02S03MigracionZK5
This commit is contained in:
Farruco Sanjurjo 2010-12-13 13:09:25 +01:00
parent 54225361d1
commit 59bd2180c9

View file

@ -100,8 +100,8 @@ ganttz.TaskComponent = zk.$extends(zk.Widget, {
this.$supers('bind_', arguments);
this.domListen_(this.$n(), "onMouseover", '_showTooltip');
this.domListen_(this.$n(), "onMouseout", '_hideTooltip');
if( jq(this.$n()).attr('movingtasksenabled') ) this._addDragDrop();
if( jq(this.$n()).attr('resizingtasksenabled')) this._addResize();
if( jq(this.$n()).attr('movingtasksenabled') == "true" ) this._addDragDrop();
if( jq(this.$n()).attr('resizingtasksenabled') == "true" ) this._addResize();
},
unbind_ : function(event){
this.domUnlisten_(this.$n(), "onMouseout", '_hideTooltip');