Explorar o código

Use jQuery selector instead of $

Sullivan SENECHAL %!s(int64=10) %!d(string=hai) anos
pai
achega
3f7b614da1
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Resources/public/Admin.js

+ 1 - 1
Resources/public/Admin.js

@@ -338,7 +338,7 @@ var Admin = {
 
         // Count and save element of each collection
         jQuery(subject).find('[data-prototype]').each(function() {
-            var collection = $(this);
+            var collection = jQuery(this);
             counters[collection.attr('id')] = collection.children().length-1;
         });