From efc0f4593504bca650c7d5bf1186f954f4bdee41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vincent=20Horv=C3=A1th?= Date: Thu, 11 Oct 2018 22:35:08 +0200 Subject: [PATCH] Fix for #14571 - "No database selected" - DROP a view MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Vincent Horváth (cherry picked from commit 36ae547c638e225fb018520e4fc168b70b05fa84) Signed-off-by: William Desportes --- js/tbl_operations.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/js/tbl_operations.js b/js/tbl_operations.js index 59b8c534e7..72a1624d6e 100644 --- a/js/tbl_operations.js +++ b/js/tbl_operations.js @@ -254,6 +254,7 @@ AJAX.registerOnload('tbl_operations.js', function () { $(document).on('click', '#drop_view_anchor.ajax', function (event) { event.preventDefault(); + var $link = $(this); /** * @var question String containing the question to be asked for confirmation */ @@ -265,10 +266,7 @@ AJAX.registerOnload('tbl_operations.js', function () { $(this).PMA_confirm(question, $(this).attr('href'), function (url) { var $msgbox = PMA_ajaxShowMessage(PMA_messages.strProcessingRequest); - var params = { - 'is_js_confirmed': '1', - 'ajax_request': true - }; + var params = getJSConfirmCommonParam(this, $link.getPostData()); $.post(url, params, function (data) { if (typeof data !== 'undefined' && data.success === true) { PMA_ajaxRemoveMessage($msgbox);