Преглед изворни кода

Merge pull request #958 from netounet/patch-6

Fix js for collection field - fix
Thomas пре 13 година
родитељ
комит
7d8ced6b66
1 измењених фајлова са 0 додато и 1 уклоњено
  1. 0 1
      Resources/public/base.js

+ 0 - 1
Resources/public/base.js

@@ -165,7 +165,6 @@ var Admin = {
             var nameRegexp = new RegExp(parts[parts.length-1]+'\\]\\[__name__','g');
             proto = proto.replace(nameRegexp, parts[parts.length-1]+']['+container.children().length);
             jQuery(proto).insertBefore(jQuery(this).parent());
-            jQuery(proto).insertBefore(jQuery(this).parent());
             
             jQuery(this).trigger('sonata-collection-item-added');
         });