Author: jablko
Date: Wed Oct 13 21:07:23 2010
New Revision: 8099

Log:
Drop unnecessary .each()

Modified:
   trunk/js/multiDelete.js

Modified: trunk/js/multiDelete.js
==============================================================================
--- trunk/js/multiDelete.js     Wed Oct 13 21:05:46 2010        (r8098)
+++ trunk/js/multiDelete.js     Wed Oct 13 21:07:23 2010        (r8099)
@@ -45,17 +45,14 @@
     Drupal.behaviors.replaceMultiDelete = {
       attach: function (context)
         {
-          $('input[type=checkbox].multiDelete').each(function ()
-            {
-              $('<button class="delete-small" name="delete"/>')
-                .click(function (event)
-                  {
-                    Qubit.multiDelete(this, $(this).attr('name'));
+          $('<button class="delete-small" name="delete"/>')
+            .click(function (event)
+              {
+                Qubit.multiDelete(this, $(this).attr('name'));
 
-                    event.preventDefault();
-                  })
-                .replaceAll(this);
-            });
+                event.preventDefault();
+              })
+            .replaceAll('input[type=checkbox].multiDelete');
 
           // Remove delete icons in table headers
           $('th img.deleteIcon').remove();

-- 
You received this message because you are subscribed to the Google Groups 
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/qubit-commits?hl=en.

Reply via email to