invalid js confirmation and operation feedback when dropping a view

This commit is contained in:
Marc Delisle
2005-10-09 10:56:55 +00:00
parent c0322c0d9f
commit ec41dbecaa
2 changed files with 9 additions and 3 deletions

View File

@@ -5,6 +5,10 @@ phpMyAdmin - Changelog
$Id$ $Id$
$Source$ $Source$
2005-10-09 Marc Delisle <lem9@users.sourceforge.net>
* tbl_properties_links.php: invalid js confirmation and operation feedback
when dropping a view
2005-10-09 Michal Čihař <michal@cihar.com> 2005-10-09 Michal Čihař <michal@cihar.com>
* libraries/display_export.lib.php, libraries/export/sql.php, lang/*, * libraries/display_export.lib.php, libraries/export/sql.php, lang/*,
config.default.php: Add ability to limit maximal size of extended insert config.default.php: Add ability to limit maximal size of extended insert

View File

@@ -73,9 +73,11 @@ $tabs['drop']['link'] = 'sql.php';
$tabs['drop']['text'] = $strDrop; $tabs['drop']['text'] = $strDrop;
$tabs['drop']['args']['reload'] = 1; $tabs['drop']['args']['reload'] = 1;
$tabs['drop']['args']['purge'] = 1; $tabs['drop']['args']['purge'] = 1;
$tabs['drop']['args']['sql_query'] = 'DROP ' . ($tbl_is_view ? 'VIEW' : 'TABLE') . ' ' . PMA_backquote($table); $drop_command = 'DROP ' . ($tbl_is_view ? 'VIEW' : 'TABLE');
$tabs['drop']['args']['zero_rows'] = sprintf($strTableHasBeenDropped, htmlspecialchars($table)); $tabs['drop']['args']['sql_query'] = $drop_command . ' ' . PMA_backquote($table);
$tabs['drop']['attr'] = 'onclick="return confirmLink(this, \'DROP TABLE ' . PMA_jsFormat($table) . '\')"'; $tabs['drop']['args']['zero_rows'] = sprintf(($tbl_is_view ? $strViewHasBeenDropped : $strTableHasBeenDropped), htmlspecialchars($table));
$tabs['drop']['attr'] = 'onclick="return confirmLink(this, \'' . $drop_command . ' ' . PMA_jsFormat($table) . '\')"';
unset($drop_command);
$tabs['drop']['class'] = 'caution'; $tabs['drop']['class'] = 'caution';
if ($table_info_num_rows > 0 || $tbl_is_view) { if ($table_info_num_rows > 0 || $tbl_is_view) {