Fix event-scheduler toggle button's behaviour

Token parameter is required for all ajax post requests

Fix #12863

Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
This commit is contained in:
Deven Bansod 2017-01-04 13:10:53 +05:30
parent e732f583d2
commit 08362b9de5

View File

@ -4049,7 +4049,9 @@ var toggleButton = function ($obj) {
removeClass = 'off';
addClass = 'on';
}
$.post(url, {'ajax_request': true}, function (data) {
var params = {'ajax_request': true, 'token': PMA_commonParams.get('token')};
$.post(url, params, function (data) {
if (typeof data !== 'undefined' && data.success === true) {
PMA_ajaxRemoveMessage($msg);
$container