From 85ab22ddc0544c886fc33d1e291d3aa7a6e0edc8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Fri, 28 Jan 2011 10:40:23 +0100 Subject: [PATCH] input element can not be under tr This prevented the JS confirmation to work with Chromium, because it moved the element outside the table. --- 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 03aa8e158..8b529d75d 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 49819dd1a..d898d0084 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(' - %s + %s %s %s %s %s - ', ($ct%2 == 0) ? 'even' : 'odd', + $sqlDropProc, $routine['ROUTINE_NAME'], ! empty($definition) ? PMA_linkOrButton('db_sql.php?' . $url_query . '&sql_query=' . urlencode($definition) . '&show_query=1&db_query_force=1&delimiter=' . urlencode($delimiter), $titles['Structure']) : ' ', '' . $titles['Drop'] . '', $routine['ROUTINE_TYPE'], - $routine['DTD_IDENTIFIER'], - $sqlDropProc); + $routine['DTD_IDENTIFIER']); $ct++; } echo '';