web/data/cubicweb.widgets.js
changeset 10027 292c81246347
parent 9529 39b46b0b01e4
child 10232 cda1bdc3652e
--- a/web/data/cubicweb.widgets.js	Fri Oct 10 09:18:28 2014 +0200
+++ b/web/data/cubicweb.widgets.js	Wed Oct 15 17:29:29 2014 +0200
@@ -355,7 +355,7 @@
 Widgets.SuggestForm = defclass("SuggestForm", null, {
 
     __init__: function(inputid, initfunc, varargs, validatefunc, options) {
-        this.validatefunc = validatefunc || noop;
+        this.validatefunc = validatefunc || $.noop;
         this.sgfield = new Widgets.BaseSuggestField(inputid, initfunc, varargs, options);
         this.oklabel = options.oklabel || 'ok';
         this.cancellabel = options.cancellabel || 'cancel';
@@ -369,11 +369,11 @@
             'class': "sgformbuttons"
         },
         [A({
-            'href': "javascript: noop();",
+            'href': "javascript: $.noop();",
             'onclick': this.onValidateClicked
         },
         this.oklabel), ' / ', A({
-            'href': "javascript: noop();",
+            'href': "javascript: $.noop();",
             'onclick': this.destroy
         },
         escapeHTML(this.cancellabel))]);