[js] remove leftover dead code in loadxhtml
form.callback support was removed in changeset 68cde7431c2c, but some
signs of it remained.
--- a/web/data/cubicweb.ajax.js Tue Mar 04 18:28:46 2014 +0100
+++ b/web/data/cubicweb.ajax.js Fri Feb 14 14:39:55 2014 +0100
@@ -338,7 +338,6 @@
} else if (this.size() < 1) {
cw.log('loadxhtml called without an element');
}
- var callback = null;
var node = this.get(0); // only consider the first element
if (cursor) {
setProgressCursor();
@@ -362,9 +361,6 @@
jQuery(node).append(domnode);
}
_postAjaxLoad(node);
- while (jQuery.isFunction(callback)) {
- callback = callback.apply(this, [domnode]);
- }
});
d.addErrback(remoteCallFailed);
if (cursor) {