Author: jablko
Date: Mon Oct 18 14:58:27 2010
New Revision: 8243

Log:
Select only <tr/> with @id

Modified:
   
trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/templates/_relatedAuthorityRecord.php
   
trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/templates/_relatedFunction.php
   
trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/templates/_relatedResource.php

Modified: 
trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/templates/_relatedAuthorityRecord.php
==============================================================================
--- 
trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/templates/_relatedAuthorityRecord.php
       Mon Oct 18 14:40:12 2010        (r8242)
+++ 
trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/templates/_relatedAuthorityRecord.php
       Mon Oct 18 14:58:27 2010        (r8243)
@@ -64,20 +64,17 @@
         'handleFieldRender': handleFieldRender }, jQuery);
 
       // Add edit link/icon to "relatedFunctions" rows
-      jQuery('#relatedEntityDisplay tr').each(function ()
+      jQuery('#relatedEntityDisplay tr[id]').each(function ()
         {
-          if (undefined != this.id)
-          {
-            var tr = this;
-            jQuery('$editImage')
-              .click(function ()
-                {
-                  dialog.open(tr.id);
-                })
+          var tr = this;
+          jQuery('$editImage')
+            .click(function ()
+              {
+                dialog.open(tr.id);
+              })
 
-              // http://bugs.jquery.com/ticket/5065
-              .prependTo(jQuery('td:last', this));
-          }
+            // http://bugs.jquery.com/ticket/5065
+            .prependTo(jQuery('td:last', this));
         });
     } }
 

Modified: 
trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/templates/_relatedFunction.php
==============================================================================
--- 
trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/templates/_relatedFunction.php  
    Mon Oct 18 14:40:12 2010        (r8242)
+++ 
trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/templates/_relatedFunction.php  
    Mon Oct 18 14:58:27 2010        (r8243)
@@ -140,20 +140,17 @@
         'relationTableMap': relationTableMap }, jQuery);
 
       // Add edit link/icon to "relatedFunctions" rows
-      jQuery('#relatedFunctions tr').each(function ()
+      jQuery('#relatedFunctions tr[id]').each(function ()
         {
-          if (undefined != this.id)
-          {
-            var tr = this;
-            jQuery('$editImage')
-              .click(function ()
-                {
-                  dialog.open(tr.id);
-                })
+          var tr = this;
+          jQuery('$editImage')
+            .click(function ()
+              {
+                dialog.open(tr.id);
+              })
 
-              // http://bugs.jquery.com/ticket/5065
-              .prependTo(jQuery('td:last', this));
-          }
+            // http://bugs.jquery.com/ticket/5065
+            .prependTo(jQuery('td:last', this));
         });
     } }
 

Modified: 
trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/templates/_relatedResource.php
==============================================================================
--- 
trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/templates/_relatedResource.php  
    Mon Oct 18 14:40:12 2010        (r8242)
+++ 
trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/templates/_relatedResource.php  
    Mon Oct 18 14:58:27 2010        (r8243)
@@ -64,20 +64,17 @@
         'handleFieldRender': handleFieldRender }, jQuery);
 
       // Add edit link/icon to "relatedFunctions" rows
-      jQuery('#relatedResourceDisplay tr').each(function ()
+      jQuery('#relatedResourceDisplay tr[id]').each(function ()
         {
-          if (undefined != this.id)
-          {
-            var tr = this;
-            jQuery('$editImage')
-              .click(function ()
-                {
-                  dialog.open(tr.id);
-                })
+          var tr = this;
+          jQuery('$editImage')
+            .click(function ()
+              {
+                dialog.open(tr.id);
+              })
 
-              // http://bugs.jquery.com/ticket/5065
-              .prependTo(jQuery('td:last', this));
-          }
+            // http://bugs.jquery.com/ticket/5065
+            .prependTo(jQuery('td:last', this));
         });
     } }
 

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