web/data/cubicweb.edition.js
changeset 4252 6c4f109c2b03
parent 4240 6109962761f2
parent 4217 bf2811a17a17
child 4274 4601ba407ed6
equal deleted inserted replaced
4251:3c6569be1f86 4252:6c4f109c2b03
   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);