diff --git a/themes/grav/js/admin-all.js b/themes/grav/js/admin-all.js
index 78628fe1..8c9a0722 100644
--- a/themes/grav/js/admin-all.js
+++ b/themes/grav/js/admin-all.js
@@ -123,13 +123,14 @@ $(function () {
$(this).attr('disabled','disabled').find('> .fa').removeClass('fa-cloud-download').addClass('fa-refresh fa-spin');
var url = $(this).data('maintenanceUpdate');
+ var task = 'task' + GravAdmin.config.param_sep;
GravAjax({
dataType: "json",
url: url,
toastErrors: true,
success: function(result, status) {
- if (url.indexOf('task:updategrav') !== -1) {
+ if (url.indexOf(task + 'updategrav') !== -1) {
if (result.status == 'success') {
$('[data-gpm-grav]').remove();
toastr.success(result.message + window.grav_available_version);
@@ -181,6 +182,7 @@ $(function () {
url: url,
toastErrors: true,
success: function(result, status) {
+ var task = 'task' + GravAdmin.config.param_sep;
var toastrBackup = {};
if (result.toastr) {
@@ -198,7 +200,7 @@ $(function () {
}
}
- if (url.indexOf('task:backup') !== -1) {
+ if (url.indexOf(task + 'backup') !== -1) {
//Reset backup days count
$('.backups-chart .numeric').html("0 days");
@@ -255,13 +257,14 @@ $(function () {
success: function (response) {
var grav = response.payload.grav,
installed = response.payload.installed,
- resources = response.payload.resources;
+ resources = response.payload.resources,
+ task = 'task' + GravAdmin.config.param_sep;
// grav updatable
if (grav.isUpdatable) {
var icon = ' ';
content = 'Grav v{available} is now available! (Current: v{version}) ',
- button = '';
+ button = '';
if (grav.isSymlink) {
button = '';
@@ -293,7 +296,7 @@ $(function () {
var length,
icon = '',
content = '{updates} of your {type} have an update available',
- button = 'Update {Type}',
+ button = 'Update {Type}',
plugins = $('.grav-update.plugins'),
themes = $('.grav-update.themes'),
sidebar = {plugins: $('#admin-menu a[href$="/plugins"]'), themes: $('#admin-menu a[href$="/themes"]')};
diff --git a/themes/grav/js/mdeditor.js b/themes/grav/js/mdeditor.js
index 7b9e4829..efe4c0dc 100644
--- a/themes/grav/js/mdeditor.js
+++ b/themes/grav/js/mdeditor.js
@@ -36,7 +36,8 @@
].join('');
var MDEditor = function(editor, options){
- var tpl = template, $this = this;
+ var tpl = template, $this = this,
+ task = 'task' + GravAdmin.config.param_sep;
this.defaults = {
markdown : false,
@@ -93,7 +94,7 @@
if ($(this).hasClass('grav-mdeditor-button-preview')) {
GravAjax({
dataType: 'JSON',
- url: $this.element.data('grav-urlpreview') + '/task:processmarkdown',
+ url: $this.element.data('grav-urlpreview') + '/' + task + 'processmarkdown',
method: 'post',
data: $this.element.parents('form').serialize(),
toastErrors: true,
diff --git a/themes/grav/js/pages-all.js b/themes/grav/js/pages-all.js
index 98f54ea8..e85fb198 100644
--- a/themes/grav/js/pages-all.js
+++ b/themes/grav/js/pages-all.js
@@ -76,6 +76,7 @@ $(function(){
restoreStates();
var startFilterPages = function () {
+ var task = 'task' + GravAdmin.config.param_sep;
$('input[name="page-search"]').focus();
var flags = $('input[name="page-filter"]').val(),
@@ -89,7 +90,7 @@ $(function(){
GravAjax({
dataType: 'json',
method: 'POST',
- url: GravAdmin.config.base_url_relative + '/pages-filter.json/task:filterPages',
+ url: GravAdmin.config.base_url_relative + '/pages-filter.json/' + task + 'filterPages',
data: {
flags: flags,
query: query
diff --git a/themes/grav/templates/partials/javascript-config.html.twig b/themes/grav/templates/partials/javascript-config.html.twig
index c5014e97..e1c1854f 100644
--- a/themes/grav/templates/partials/javascript-config.html.twig
+++ b/themes/grav/templates/partials/javascript-config.html.twig
@@ -1,6 +1,7 @@
\ No newline at end of file
+