Author: sevein
Date: Thu Oct 14 03:41:20 2010
New Revision: 8119

Log:
Fix bug with jQuery.after() in multiDelete.js.

Modified:
   trunk/js/multiDelete.js

Modified: trunk/js/multiDelete.js
==============================================================================
--- trunk/js/multiDelete.js     Thu Oct 14 00:02:47 2010        (r8118)
+++ trunk/js/multiDelete.js     Thu Oct 14 03:41:20 2010        (r8119)
@@ -48,7 +48,11 @@
                     Qubit.multiDelete.apply(input);
                   });
               })
-            .hide();
+
+            // Make sure that after() returns an input element.
+            // It returns document (which is not compatible
+            // with hide()) if $('multiDelete').lenght is zero
+            .filter('input').hide();
 
           // Drop delete icons from 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