The branch, master has been updated
       via  85ab22ddc0544c886fc33d1e291d3aa7a6e0edc8 (commit)
      from  701268fb5778e4031c6b79d910c068f05c14c79e (commit)


- Log -----------------------------------------------------------------
commit 85ab22ddc0544c886fc33d1e291d3aa7a6e0edc8
Author: Michal Čihař <[email protected]>
Date:   Fri Jan 28 10:40:23 2011 +0100

    input element can not be under tr
    
    This prevented the JS confirmation to work with Chromium, because it
    moved the element outside the table.

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

Summary of changes:
 js/db_structure.js            |    2 +-
 libraries/db_routines.inc.php |    7 +++----
 2 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/js/db_structure.js b/js/db_structure.js
index 03aa8e1..8b529d7 100644
--- a/js/db_structure.js
+++ b/js/db_structure.js
@@ -199,7 +199,7 @@ $(document).ready(function() {
         /**
          * @var question    String containing the question to be asked for 
confirmation
          */
-        var question = $(curr_proc_row).children('.drop_procedure_sql').val();
+        var question = 
$(curr_proc_row).children('td').children('.drop_procedure_sql').val();
 
         $(this).PMA_confirm(question, $(this).attr('href'), function(url) {
 
diff --git a/libraries/db_routines.inc.php b/libraries/db_routines.inc.php
index 49819dd..d898d00 100644
--- a/libraries/db_routines.inc.php
+++ b/libraries/db_routines.inc.php
@@ -65,20 +65,19 @@ if ($routines) {
             $sqlDropProc = 'DROP FUNCTION ' . 
PMA_backquote($routine['SPECIFIC_NAME']);
         }
         echo sprintf('<tr class="%s">
-                          <td><strong>%s</strong></td>
+                          <td><input type="hidden" class="drop_procedure_sql" 
value="%s" /><strong>%s</strong></td>
                           <td>%s</td>
                           <td>%s</td>
                           <td>%s</td>
                           <td>%s</td>
-                          <input type="hidden" class="drop_procedure_sql" 
value="%s" />
                      </tr>',
                      ($ct%2 == 0) ? 'even' : 'odd',
+                     $sqlDropProc,
                      $routine['ROUTINE_NAME'],
                      ! empty($definition) ? PMA_linkOrButton('db_sql.php?' . 
$url_query . '&amp;sql_query=' . urlencode($definition) . 
'&amp;show_query=1&amp;db_query_force=1&amp;delimiter=' . 
urlencode($delimiter), $titles['Structure']) : '&nbsp;',
                      '<a class="drop_procedure_anchor" href="sql.php?' . 
$url_query . '&amp;sql_query=' . urlencode($sqlDropProc) . '" >' . 
$titles['Drop'] . '</a>',
                      $routine['ROUTINE_TYPE'],
-                     $routine['DTD_IDENTIFIER'],
-                    $sqlDropProc);
+                     $routine['DTD_IDENTIFIER']);
         $ct++;
     }
     echo '</table>';


hooks/post-receive
-- 
phpMyAdmin

------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
Phpmyadmin-git mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/phpmyadmin-git

Reply via email to