Author: jablko
Date: Wed Oct 13 21:53:17 2010
New Revision: 8101

Log:
Simplify <tr/> to hide

Modified:
   trunk/js/multiDelete.js

Modified: trunk/js/multiDelete.js
==============================================================================
--- trunk/js/multiDelete.js     Wed Oct 13 21:19:36 2010        (r8100)
+++ trunk/js/multiDelete.js     Wed Oct 13 21:53:17 2010        (r8101)
@@ -12,8 +12,7 @@
     Qubit.multiDelete = function (thisObj, elementName)
     {
       // Hide element
-      var relatedObjName = elementName.replace(/\w+\[(\d+)\]/, 
'related_obj_$1');
-      var parentRows = $(thisObj).parents('table:first').find('.' + 
relatedObjName);
+      var parentRows = $(thisObj).closest('tr');
 
       // Add an "animateNicely" div to each td to make "hide" animation play 
nicely
       parentRows.find('td').each(function (i) {

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