diff options
author | Vincent Horváth <win9400@gmail.com> | 2018-10-11 23:35:08 +0300 |
---|---|---|
committer | William Desportes <williamdes@wdes.fr> | 2018-10-25 23:51:39 +0300 |
commit | 54f78660e0ec12a092627ff146219031d52e3151 (patch) | |
tree | 0f31543f3aeb093eeb0ac7efebc16859e98e9138 /js/tbl_operations.js | |
parent | 5d4bc20ed113a1ca9c026d99e7f571ba25eafc18 (diff) |
Fix for #14571 - "No database selected" - DROP a view
Signed-off-by: Vincent Horváth <win9400@gmail.com>
(cherry picked from commit 36ae547c638e225fb018520e4fc168b70b05fa84)
Signed-off-by: William Desportes <williamdes@wdes.fr>
Diffstat (limited to 'js/tbl_operations.js')
-rw-r--r-- | js/tbl_operations.js | 6 |
1 files 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); |