Author: jablko
Date: Mon Oct 25 14:24:05 2010
New Revision: 8485

Log:
Cosmetic change

Modified:
   trunk/js/dialog.js

Modified: trunk/js/dialog.js
==============================================================================
--- trunk/js/dialog.js  Mon Oct 25 14:07:54 2010        (r8484)
+++ trunk/js/dialog.js  Mon Oct 25 14:24:05 2010        (r8485)
@@ -434,14 +434,17 @@
               return;
             }
 
-            var tr = $('#' + this.options.displayTable + ' tr[id=' + thisId + 
']');
+            var $tr = $('#' + this.options.displayTable + ' tr[id=' + thisId + 
']');
 
-            // Wrap <td/> contents in <div/> so the row hides nicely then hide 
and
-            // remove row
-            tr.find('> td').wrapInner('<div/>')
-              .find('> div').hide('normal', function ()
+            // Wrap <td/> contents in <div/> so the row hides nicely then hide
+            // and remove row
+            $tr
+              .find('td')
+              .wrapInner('<div/>')
+              .find('> div')
+              .hide('fast', function ()
                 {
-                  tr.remove();
+                  $(this).remove();
                 });
 
             // If this is an existing relationship, then store id for deletion
@@ -458,7 +461,6 @@
           {
             var displayTable = 
document.getElementById(this.options.displayTable);
             var newRowTemplate = this.options.newRowTemplate;
-
             if (undefined === displayTable || undefined === newRowTemplate)
             {
               return;
@@ -474,7 +476,7 @@
               var render = thisDialog.renderField;
             }
 
-            tr = newRowTemplate.replace('{' + this.fieldPrefix + '[id]}', 
this.id);
+            var tr = newRowTemplate.replace('{' + this.fieldPrefix + '[id]}', 
this.id);
             for (fname in this.fields)
             {
               if (0 < fname.length)

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