Author: sevein
Date: Tue Jul 26 16:18:26 2011
New Revision: 9391

Log:
Change query format because old one was not working correctly (problem of 
jQuery upgrade?)

Modified:
   trunk/js/dialog.js

Modified: trunk/js/dialog.js
==============================================================================
--- trunk/js/dialog.js  Tue Jul 26 16:15:45 2011        (r9390)
+++ trunk/js/dialog.js  Tue Jul 26 16:18:26 2011        (r9391)
@@ -483,13 +483,14 @@
             }
 
             // http://bugs.jquery.com/ticket/7246
-            if (!$('tr[id=' + this.id + ']', displayTable).length)
+            var $row = $(displayTable).find('tbody > tr').filter('[id=' + 
this.id + ']');
+            if (!$row.length)
             {
               var $tr = $(tr).appendTo(displayTable);
             }
             else
             {
-              var $tr = $(tr).replaceAll($('tr[id=' + this.id + ']', 
displayTable));
+              var $tr = $(tr).replaceAll($row);
             }
 
             // Bind events

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