Author: jablko
Date: Mon Oct 18 14:40:12 2010
New Revision: 8242

Log:
Use tr instead of selector

Modified:
   trunk/js/dialog.js
   
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/js/dialog.js
==============================================================================
--- trunk/js/dialog.js  Mon Oct 18 14:35:33 2010        (r8241)
+++ trunk/js/dialog.js  Mon Oct 18 14:40:12 2010        (r8242)
@@ -568,12 +568,12 @@
       }
 
       // Bind events
-      $('tr[id=' + this.id + '] img[alt=edit]').click(function ()
+      $('img[alt=edit]', tr).click(function ()
         {
           thisDialog.open($(this).closest('tr').attr('id'));
         });
 
-      $('tr[id=' + this.id + '] button[name=delete]').click(function (event)
+      $('button[name=delete]', tr).click(function (event)
         {
           event.preventDefault();
 

Modified: 
trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/templates/_relatedAuthorityRecord.php
==============================================================================
--- 
trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/templates/_relatedAuthorityRecord.php
       Mon Oct 18 14:35:33 2010        (r8241)
+++ 
trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/templates/_relatedAuthorityRecord.php
       Mon Oct 18 14:40:12 2010        (r8242)
@@ -70,7 +70,7 @@
           {
             var tr = this;
             jQuery('$editImage')
-              .click(function (event)
+              .click(function ()
                 {
                   dialog.open(tr.id);
                 })

Modified: 
trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/templates/_relatedFunction.php
==============================================================================
--- 
trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/templates/_relatedFunction.php  
    Mon Oct 18 14:35:33 2010        (r8241)
+++ 
trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/templates/_relatedFunction.php  
    Mon Oct 18 14:40:12 2010        (r8242)
@@ -146,7 +146,7 @@
           {
             var tr = this;
             jQuery('$editImage')
-              .click(function (event)
+              .click(function ()
                 {
                   dialog.open(tr.id);
                 })

Modified: 
trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/templates/_relatedResource.php
==============================================================================
--- 
trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/templates/_relatedResource.php  
    Mon Oct 18 14:35:33 2010        (r8241)
+++ 
trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/templates/_relatedResource.php  
    Mon Oct 18 14:40:12 2010        (r8242)
@@ -70,7 +70,7 @@
           {
             var tr = this;
             jQuery('$editImage')
-              .click(function (event)
+              .click(function ()
                 {
                   dialog.open(tr.id);
                 })

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