equal
deleted
inserted
replaced
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 } |