[go: nahoru, domu]

Skip to content

Commit

Permalink
Drop and Truncate display the database name (#13209)
Browse files Browse the repository at this point in the history
Display the database name on drop and truncate confirmaton

Fixes #13140

Signed-off-by: Diego Banos <diegobanosfarinas@gmail.com>
  • Loading branch information
diegobanos authored and nijel committed Apr 28, 2017
1 parent e2d6602 commit d6d9d2e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/tbl_operations.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ AJAX.registerOnload('tbl_operations.js', function () {
var question = PMA_messages.strDropTableStrongWarning + ' ';
question += PMA_sprintf(
PMA_messages.strDoYouReally,
'DROP TABLE `' + escapeHtml(PMA_commonParams.get('table') + '`')
'DROP TABLE `' + escapeHtml(PMA_commonParams.get('db')) + '`.`' + escapeHtml(PMA_commonParams.get('table') + '`')
) + getForeignKeyCheckboxLoader();

$(this).PMA_confirm(question, $(this).attr('href'), function (url) {
Expand Down Expand Up @@ -284,7 +284,7 @@ AJAX.registerOnload('tbl_operations.js', function () {
var question = PMA_messages.strTruncateTableStrongWarning + ' ';
question += PMA_sprintf(
PMA_messages.strDoYouReally,
'TRUNCATE `' + escapeHtml(PMA_commonParams.get('table') + '`')
'TRUNCATE `' + escapeHtml(PMA_commonParams.get('db')) + '`.`' + escapeHtml(PMA_commonParams.get('table') + '`')
) + getForeignKeyCheckboxLoader();
$(this).PMA_confirm(question, $(this).attr('href'), function (url) {
PMA_ajaxShowMessage(PMA_messages.strProcessingRequest);
Expand Down

0 comments on commit d6d9d2e

Please sign in to comment.