web/data/cubicweb.edition.js
branch3.5
changeset 3136 ed303cf3a048
parent 3100 b0a583156d6d
parent 3124 c929360212ca
child 3232 eccb7380dc3b
equal deleted inserted replaced
3134:3cda74b5534c 3136:ed303cf3a048
   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     });