// ajax.php clean and bug fixes
This commit is contained in:
@@ -24,12 +24,20 @@
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
function submitPublishCMS(url, redirect)
|
||||
function submitPublishCMS(url, redirect, token)
|
||||
{
|
||||
var id_cms = $('#admin-action-cms-id').val();
|
||||
|
||||
$.ajaxSetup({async: false});
|
||||
$.post(url+'/ajax.php', { submitPublishCMS: '1', id_cms: id_cms, status: 1, redirect: redirect },
|
||||
$.post(url+'/index.php', {
|
||||
action: 'PublishCMS',
|
||||
id_cms: id_cms,
|
||||
status: 1,
|
||||
redirect: redirect,
|
||||
ajax: 1,
|
||||
tab: 'AdminCmsContent',
|
||||
token: token
|
||||
},
|
||||
function(data)
|
||||
{
|
||||
if (data.indexOf('error') === -1)
|
||||
|
||||
Reference in New Issue
Block a user