Fixes a bug when saving a modified template

When template has been modified outside of the CMS (mtime mismatch).
Fixes #2690
This commit is contained in:
Samuel Georges 2017-04-05 22:07:15 +10:00
parent 08e7fa4296
commit 9f809becca
1 changed files with 1 additions and 1 deletions

View File

@ -318,7 +318,7 @@
}
}
CmsPage.prototype.onAjaxError = function(ev, context, data, jqXHR) {
CmsPage.prototype.onAjaxError = function(ev, context, message, data, jqXHR) {
if (context.handler == 'onSave') {
if (jqXHR.responseText == 'mtime-mismatch') {
ev.preventDefault()