web/data/cubicweb.edition.js
branchstable
changeset 3342 8b30ae9c4e67
parent 3327 44efba78afac
child 3343 383b42263bb1
equal deleted inserted replaced
3341:99c0b55892d6 3342:8b30ae9c4e67
   252         var form = jQuery(dom);
   252         var form = jQuery(dom);
   253         form.css('display', 'none');
   253         form.css('display', 'none');
   254         form.insertBefore(insertBefore).slideDown('fast');
   254         form.insertBefore(insertBefore).slideDown('fast');
   255         updateInlinedEntitiesCounters(rtype);
   255         updateInlinedEntitiesCounters(rtype);
   256         reorderTabindex();
   256         reorderTabindex();
   257         form.trigger('inlinedform-added');
   257         jQuery(CubicWeb).trigger('inlinedform-added', form);
   258         // if the inlined form contains a file input, we must force
   258         // if the inlined form contains a file input, we must force
   259         // the form enctype to multipart/form-data
   259         // the form enctype to multipart/form-data
   260         if (form.find('input:file').length) {
   260         if (form.find('input:file').length) {
   261             form.closest('form').attr('enctype', 'multipart/form-data');
   261             form.closest('form').attr('enctype', 'multipart/form-data');
   262         }
   262         }