[js] noop is undefined in plain javascript (related to #2786674)
authorAurelien Campeas <aurelien.campeas@logilab.fr>
Tue, 07 Jan 2014 16:39:32 +0100
changeset 9381 6d97e80b2e97
parent 9380 4f4342ec87ac
child 9382 ac0661486568
[js] noop is undefined in plain javascript (related to #2786674)
web/data/cubicweb.ajax.box.js
--- a/web/data/cubicweb.ajax.box.js	Tue Dec 17 11:13:45 2013 +0100
+++ b/web/data/cubicweb.ajax.box.js	Tue Jan 07 16:39:32 2014 +0100
@@ -81,12 +81,12 @@
             });
             $input.cwautocomplete(unrelated, {multiple: Boolean(separator)});
             var buttons = DIV({'class' : "sgformbuttons"},
-                              A({href : "javascript: noop();",
+                              A({href : "javascript: $.noop();",
                                  onclick : cw.utils.strFuncCall('ajaxBoxValidateSelectorInput',
                                                                 boxid, eid, separator, addfname, msg)},
                                 oklabel),
                               ' / ',
-                              A({'href' : "javascript: noop();",
+                              A({'href' : "javascript: $.noop();",
                                  'onclick' : '$("#' + holderid + '").empty()'},
                                   cancellabel));
             holder.append(buttons);