Fix for #14571 - "No database selected" - DROP a view

Signed-off-by: Vincent Horváth <win9400@gmail.com>
(cherry picked from commit 36ae547c63)
Signed-off-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
Vincent Horváth 2018-10-11 22:35:08 +02:00 committed by Isaac Bennetch
parent bad7f2f371
commit efc0f45935

View File

@ -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);