Author: jablko
Date: Wed Oct 13 23:02:12 2010
New Revision: 8109

Log:
Cosmetic change, use context vs. argument to pass checkbox element

Modified:
   trunk/js/multiDelete.js

Modified: trunk/js/multiDelete.js
==============================================================================
--- trunk/js/multiDelete.js     Wed Oct 13 22:57:11 2010        (r8108)
+++ trunk/js/multiDelete.js     Wed Oct 13 23:02:12 2010        (r8109)
@@ -9,16 +9,16 @@
      * @param object thisElement dom <select> element to operate on
      * @return void
      */
-    Qubit.multiDelete = function (thisObj)
+    Qubit.multiDelete = function ()
     {
       // Hide element
-      var $parentRows = $(thisObj).closest('tr');
+      var $parentRows = $(this).closest('tr');
 
       // Add "animateNicely" <div/> to each <td/> to make "hide" animation play
       // nicely
       $('td:not(:has(.animateNicely))', $parentRows).each(function ()
         {
-          if ('' == $.trim($(this).text()))
+          if ('' == jQuery.trim($(this).text()))
           {
             // Add a &nbsp; if <td/> has no contents because .hide() doesn't
             // seem to operate on <div/>s that contain only whitespace
@@ -26,7 +26,7 @@
           }
           else
           {
-            $(this).wrapInner('<div class="animateNicely"></div>');
+            $(this).wrapInner('<div class="animateNicely"/>');
           }
         });
 
@@ -49,7 +49,7 @@
 
                 return $('<button class="delete-small" 
type="button"/>').click(function ()
                   {
-                    Qubit.multiDelete(input);
+                    Qubit.multiDelete.apply(input);
                   });
               })
             .hide();

-- 
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