# HG changeset patch # User Aurelien Campeas # Date 1389109172 -3600 # Node ID 6d97e80b2e97c5bb3c9379c54f4ec593c955557e # Parent 4f4342ec87acc3592314676f14e63620a75e29e4 [js] noop is undefined in plain javascript (related to #2786674) diff -r 4f4342ec87ac -r 6d97e80b2e97 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);