浏览代码

Merge pull request #41 from beeldspraak/fix-jquery-datatype-one-association-script

add dataType to jquery ajax submit to append a form field
Thomas 13 年之前
父节点
当前提交
3ce7bdead2
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      Resources/views/CRUD/edit_orm_one_association_script.html.twig

+ 1 - 0
Resources/views/CRUD/edit_orm_one_association_script.html.twig

@@ -39,6 +39,7 @@ This code manage the one-to-many association field popup
                 'uniqid':    sonata_admin.admin.root.uniqid
             }) }}',
             type: "POST",
+            dataType: 'html',
             data: { _xml_http_request: true },
             success: function(html) {
                 jQuery('#field_container_{{ id }}').replaceWith(html); // replace the html