[Phpmyadmin-git] [SCM] phpMyAdmin branch, master, updated. RELEASE_3_4_0BETA2-1562-gd8bb324

Marc Delisle lem9 at users.sourceforge.net
Tue Feb 1 13:49:51 CET 2011


The branch, master has been updated
       via  d8bb324c6b1a624c3868acd072dc0b854a6e64a4 (commit)
      from  15fd805b8077a07e2b1c0af5b4401697e556bb8e (commit)


- Log -----------------------------------------------------------------
commit d8bb324c6b1a624c3868acd072dc0b854a6e64a4
Author: Marc Delisle <marc at infomarc.info>
Date:   Tue Feb 1 07:49:25 2011 -0500

    Unneeded wrapping of jQuery object

-----------------------------------------------------------------------

Summary of changes:
 js/functions.js |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/js/functions.js b/js/functions.js
index f4a939b..74a4fb8 100644
--- a/js/functions.js
+++ b/js/functions.js
@@ -1837,16 +1837,17 @@ $(document).ready(function() {
     $(".drop_trigger_anchor").live('click', function(event) {
         event.preventDefault();
 
+        $anchor = $(this);
         /**
          * @var curr_row    Object reference to the current trigger's <tr>
          */
-        var curr_row = $(this).parents('tr');
+        var $curr_row = $anchor.parents('tr');
         /**
          * @var question    String containing the question to be asked for confirmation
          */
-        var question = 'DROP TRIGGER IF EXISTS `' + $(curr_row).children('td:first').text() + '`';
+        var question = 'DROP TRIGGER IF EXISTS `' + $curr_row.children('td:first').text() + '`';
 
-        $(this).PMA_confirm(question, $(this).attr('href'), function(url) {
+        $anchor.PMA_confirm(question, $anchor.attr('href'), function(url) {
 
             PMA_ajaxShowMessage(PMA_messages['strProcessingRequest']);
             $.get(url, {'is_js_confirmed': 1, 'ajax_request': true}, function(data) {
@@ -1857,7 +1858,7 @@ $(document).ready(function() {
                     .remove()
                     .end()
                     .after(data.sql_query);
-                    $(curr_row).hide("medium").remove();
+                    $curr_row.hide("medium").remove();
                 }
                 else {
                     PMA_ajaxShowMessage(data.error);


hooks/post-receive
-- 
phpMyAdmin




More information about the Git mailing list