# HG changeset patch # User sylvain.thenault@logilab.fr # Date 1239291174 -7200 # Node ID ed2dac034fee3b0480a2de40319ca97867add32d # Parent 1d389a6b99b1e558b98ff66643f4d2fc11a17b39 somewhat update to jquery, not yet finished though diff -r 1d389a6b99b1 -r ed2dac034fee web/data/cubicweb.widgets.js --- a/web/data/cubicweb.widgets.js Thu Apr 09 16:42:37 2009 +0200 +++ b/web/data/cubicweb.widgets.js Thu Apr 09 17:32:54 2009 +0200 @@ -228,16 +228,11 @@ 'cols' : wdgnode.getAttribute('cubicweb:cols') || 80 }; // this.variableRegexp = /%\((\w+)\)s/; - this.parentnode = wdgnode; - }, - - show : function(parentnode) { - parentnode = parentnode || this.parentnode; this.errorField = DIV({'class' : "textfieldErrors"}); this.textField = TEXTAREA(this.options); - connect(this.textField, 'onkeyup', this, this.highlightInvalidVariables); - appendChildNodes(parentnode, this.textField, this.errorField); - appendChildNodes(parentnode, this.textField); + jQuery(this.textField).bind('keyup', {'self': this}, this.highlightInvalidVariables); + wdgnode.appendChild(this.textField); + wdgnode.appendChild(this.errorField); }, /* signal callbacks */