Author: sevein
Date: Fri Aug 19 14:39:54 2011
New Revision: 9557

Log:
Use safest way to filter row

Modified:
   trunk/js/dialog.js

Modified: trunk/js/dialog.js
==============================================================================
--- trunk/js/dialog.js  Fri Aug 19 14:13:13 2011        (r9556)
+++ trunk/js/dialog.js  Fri Aug 19 14:39:54 2011        (r9557)
@@ -524,7 +524,12 @@
             }
 
             // http://bugs.jquery.com/ticket/7246
-            var $row = $(displayTable).find('tbody > tr').filter('[id=' + 
this.id + ']');
+            // For unknown reasons, [id=?] selector is not working properly 
when tr.length > 1
+            var rowId = this.id;
+            var $row = $(displayTable).find('tbody > tr').filter(function()
+              {
+                return rowId == this.id; 
+              });
             if (!$row.length)
             {
               var $tr = $(tr).appendTo(displayTable);

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