equal
deleted
inserted
replaced
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 form.trigger('inlinedform-added'); |
|
258 // if the inlined form contains a file input, we must force |
|
259 // the form enctype to multipart/form-data |
|
260 if (form.find('input:file').length) { |
|
261 form.closest('form').attr('enctype', 'multipart/form-data'); |
|
262 } |
258 postAjaxLoad(dom); |
263 postAjaxLoad(dom); |
259 }); |
264 }); |
260 d.addErrback(function (xxx) { |
265 d.addErrback(function (xxx) { |
261 log('xxx =', xxx); |
266 log('xxx =', xxx); |
262 }); |
267 }); |