Prechádzať zdrojové kódy

Use jQuery selector instead of $

Sullivan SENECHAL 10 rokov pred
rodič
commit
3f7b614da1
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  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
         // Count and save element of each collection
         jQuery(subject).find('[data-prototype]').each(function() {
         jQuery(subject).find('[data-prototype]').each(function() {
-            var collection = $(this);
+            var collection = jQuery(this);
             counters[collection.attr('id')] = collection.children().length-1;
             counters[collection.attr('id')] = collection.children().length-1;
         });
         });