[Phpmyadmin-git] [SCM] phpMyAdmin branch, master, updated. RELEASE_3_3_7-10604-gad207a4

Marc Delisle lem9 at users.sourceforge.net
Wed Oct 13 19:19:58 CEST 2010


The branch, master has been updated
       via  ad207a415fd2ba6f0e110c9e74ba9ee50a5b25a8 (commit)
      from  19d0a9568f3f7a5447dd2fb35c173e8d83e1aacc (commit)


- Log -----------------------------------------------------------------
commit ad207a415fd2ba6f0e110c9e74ba9ee50a5b25a8
Author: Marc Delisle <marc at infomarc.info>
Date:   Wed Oct 13 13:19:49 2010 -0400

    remove extra jQuery wrapping and prepend a dollar sign to some jQuery objects

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

Summary of changes:
 js/sql.js |   20 ++++++++++----------
 1 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/js/sql.js b/js/sql.js
index 56459b8..019986a 100644
--- a/js/sql.js
+++ b/js/sql.js
@@ -43,17 +43,17 @@ function getFieldName(this_field_obj, disp_mode) {
  */
 function appendInlineAnchor(disp_mode) {
     if(disp_mode == 'vertical') {
-        var cloned_row = $('.edit_row_anchor').removeClass('edit_row_anchor').parent('tr').clone();
+        var $cloned_row = $('.edit_row_anchor').removeClass('edit_row_anchor').parent('tr').clone();
 
-        var img_object = $(cloned_row).find('img:first').attr('title', PMA_messages['strInlineEdit']);
+        var $img_object = $cloned_row.find('img:first').attr('title', PMA_messages['strInlineEdit']);
 
-        $(cloned_row).find('td').addClass('edit_row_anchor')
+        $cloned_row.find('td').addClass('edit_row_anchor')
         .find('a').attr('href', '#')
         .find('span')
         .text(PMA_messages['strInlineEdit'])
-        .prepend(img_object);
+        .prepend($img_object);
 
-        $(cloned_row).insertBefore($('.where_clause').parent('tr'));
+        $cloned_row.insertBefore($('.where_clause').parent('tr'));
 
         $("#table_results").find('tr:first').find('th')
         .attr('rowspan', '4');
@@ -63,18 +63,18 @@ function appendInlineAnchor(disp_mode) {
 
             $(this).removeClass('edit_row_anchor');
 
-            var cloned_anchor = $(this).clone();
+            var $cloned_anchor = $(this).clone();
 
-            var img_object = $(cloned_anchor).find('img').attr('title', PMA_messages['strInlineEdit']);
+            var $img_object = $cloned_anchor.find('img').attr('title', PMA_messages['strInlineEdit']);
 
-            $(cloned_anchor).addClass('edit_row_anchor')
+            $cloned_anchor.addClass('edit_row_anchor')
             .find('a').attr('href', '#')
             .find('span')
             .text(PMA_messages['strInlineEdit'])
-            .prepend(img_object);
+            .prepend($img_object);
 
             $(this).siblings('.where_clause')
-            .before(cloned_anchor);
+            .before($cloned_anchor);
         });
 
         $('#rowsDeleteForm').find('thead').find('th').each(function() {


hooks/post-receive
-- 
phpMyAdmin




More information about the Git mailing list