소스 검색

Fix collection counter when we have more than 10 elements

tashanta 9 년 전
부모
커밋
3affa3a387
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      Resources/public/Admin.js

+ 1 - 1
Resources/public/Admin.js

@@ -312,7 +312,7 @@ var Admin = {
         Admin.log('[core|setup_collection_counter] setup collection counter', subject);
 
         // Count and save element of each collection
-        var highestCounterRegexp = new RegExp('_([0-9])+$');
+        var highestCounterRegexp = new RegExp('_([0-9]+)[^0-9]*$');
         jQuery(subject).find('[data-prototype]').each(function() {
             var collection = jQuery(this);
             var counter = 0;