diff options
author | Michal Čihař <michal@cihar.com> | 2018-03-01 18:02:57 +0300 |
---|---|---|
committer | Michal Čihař <michal@cihar.com> | 2018-03-01 18:02:57 +0300 |
commit | f4026f60a4b557cbcc61e11f26167a2759ad94af (patch) | |
tree | 75cce0dd16cd94bf3bacfd46d83648abc7834ad9 /js/tbl_structure.js | |
parent | 92ef798a534ac4ad3798c25f9254b872cc8fa2bf (diff) | |
parent | c9153ed21a8b0625b846700ec19540c5671029c8 (diff) |
Merge branch 'QA_4_7'
Diffstat (limited to 'js/tbl_structure.js')
-rw-r--r-- | js/tbl_structure.js | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/js/tbl_structure.js b/js/tbl_structure.js index af24b5936b..bb26f3b8bb 100644 --- a/js/tbl_structure.js +++ b/js/tbl_structure.js @@ -22,7 +22,7 @@ * Reload fields table */ function reloadFieldForm () { - $.post($('#fieldsForm').attr('action'), $('#fieldsForm').serialize() + '&ajax_request=true', function (form_data) { + $.post($('#fieldsForm').attr('action'), $('#fieldsForm').serialize() + PMA_commonParams.get('arg_separator') + 'ajax_request=true', function (form_data) { var $temp_div = $('<div id=\'temp_div\'><div>').append(form_data.message); $('#fieldsForm').replaceWith($temp_div.find('#fieldsForm')); $('#addColumns').replaceWith($temp_div.find('#addColumns')); @@ -75,7 +75,7 @@ AJAX.registerOnload('tbl_structure.js', function () { function submitForm () { $msg = PMA_ajaxShowMessage(PMA_messages.strProcessingRequest); - $.post($form.attr('action'), $form.serialize() + '&do_save_data=1', function (data) { + $.post($form.attr('action'), $form.serialize() + PMA_commonParams.get('arg_separator') + 'do_save_data=1', function (data) { if ($('.sqlqueryresults').length !== 0) { $('.sqlqueryresults').remove(); } else if ($('.error:not(.tab)').length !== 0) { @@ -184,7 +184,7 @@ AJAX.registerOnload('tbl_structure.js', function () { $this_anchor.PMA_confirm(question, $this_anchor.attr('href'), function (url) { var $msg = PMA_ajaxShowMessage(PMA_messages.strDroppingColumn, false); var params = getJSConfirmCommonParam(this, $this_anchor.getPostData()); - params += '&ajax_page_request=1'; + params += PMA_commonParams.get('arg_separator') + 'ajax_page_request=1'; $.post(url, params, function (data) { if (typeof data !== 'undefined' && data.success === true) { PMA_ajaxRemoveMessage($msg); @@ -270,7 +270,7 @@ AJAX.registerOnload('tbl_structure.js', function () { AJAX.source = $this; var params = getJSConfirmCommonParam(this, $this_anchor.getPostData()); - params += '&ajax_page_request=1'; + params += PMA_commonParams.get('arg_separator') + 'ajax_page_request=1'; $.post(url, params, AJAX.responseHandler); }); // end $.PMA_confirm() }); // end Add key @@ -305,7 +305,7 @@ AJAX.registerOnload('tbl_structure.js', function () { return; } - $.post($form.prop('action'), serialized + '&ajax_request=true', function (data) { + $.post($form.prop('action'), serialized + PMA_commonParams.get('arg_separator') + 'ajax_request=true', function (data) { if (data.success === false) { PMA_ajaxRemoveMessage($msgbox); $this @@ -406,7 +406,8 @@ AJAX.registerOnload('tbl_structure.js', function () { e.preventDefault(); var $button = $(this); var $form = $button.parents('form'); - var submitData = $form.serialize() + '&ajax_request=true&ajax_page_request=true&submit_mult=' + $button.val(); + var argsep = PMA_commonParams.get('arg_separator'); + var submitData = $form.serialize() + argsep + 'ajax_request=true' + argsep + 'ajax_page_request=true' + argsep + 'submit_mult=' + $button.val(); PMA_ajaxShowMessage(); AJAX.source = $form; $.post($form.attr('action'), submitData, AJAX.responseHandler); |