瀏覽代碼

Merge pull request #101 from phansys/patch-6

Rebasing PR
Thomas 13 年之前
父節點
當前提交
10b7942ca5
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4 4
      Resources/views/CRUD/edit_orm_one_association_script.html.twig

+ 4 - 4
Resources/views/CRUD/edit_orm_one_association_script.html.twig

@@ -43,10 +43,10 @@ This code manage the one-to-many association field popup
             data: { _xml_http_request: true },
             success: function(html) {
                 jQuery('#field_container_{{ id }}').replaceWith(html); // replace the html
-								if(jQuery(form + 'input[type="file"]').length > 0) {
-									jQuery(form).attr('enctype', 'multipart/form-data');
-									jQuery(form).attr('encoding', 'multipart/form-data');
-								}
+                if(jQuery(form + 'input[type="file"]').length > 0) {
+                    jQuery(form).attr('enctype', 'multipart/form-data');
+                    jQuery(form).attr('encoding', 'multipart/form-data');
+                }
                 jQuery('#sonata-ba-field-container-{{ id }}').trigger('sonata.add_element');
             }
         });