--- a/web/data/cubicweb.edition.js Thu Sep 16 13:38:49 2010 +0200
+++ b/web/data/cubicweb.edition.js Thu Sep 16 14:11:12 2010 +0200
@@ -317,7 +317,7 @@
form.insertBefore(insertBefore).slideDown('fast');
updateInlinedEntitiesCounters(rtype, role);
reorderTabindex(null, $(insertBefore).closest('form')[0]);
- jQuery(CubicWeb).trigger('inlinedform-added', form);
+ jQuery(cw).trigger('inlinedform-added', form);
// if the inlined form contains a file input, we must force
// the form enctype to multipart/form-data
if (form.find('input:file').length) {