Skip to content

Commit

Permalink
fixed params for drop view request
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent Horváth <win9400@gmail.com>
  • Loading branch information
Vincent Horváth committed Oct 11, 2018
1 parent 4d94b1b commit 36ae547
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions js/tbl_operations.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand All @@ -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);
Expand Down

0 comments on commit 36ae547

Please sign in to comment.