equal
deleted
inserted
replaced
256 reorderTabindex(); |
256 reorderTabindex(); |
257 jQuery(CubicWeb).trigger('inlinedform-added', form); |
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 // NOTE: IE doesn't support dynamic enctype modification, we have |
|
262 // to set encoding too. |
|
263 form.closest('form').attr('enctype', 'multipart/form-data') |
|
264 .attr('encoding', 'multipart/form-data'); |
262 } |
265 } |
263 postAjaxLoad(dom); |
266 postAjaxLoad(dom); |
264 }); |
267 }); |
265 d.addErrback(function (xxx) { |
268 d.addErrback(function (xxx) { |
266 log('xxx =', xxx); |
269 log('xxx =', xxx); |