Only change "modified" counter on successful save

The modified counter in the CMS module (the red box in the sidebar)
always changes when saving, even when an error is returned.

This fix will only change the "modified" counter in the CMS module on a
successful change.
This commit is contained in:
Jasper 2014-05-19 16:31:07 +02:00
parent 2ddf5c459c
commit c7537339da
1 changed files with 1 additions and 1 deletions

View File

@ -221,7 +221,7 @@
updateFormEditorMode($(this).closest('.tab-pane'), false)
if (context.handler == 'onSave') {
if (context.handler == 'onSave' && (!data['X_OCTOBER_ERROR_FIELDS'] && !data['X_OCTOBER_ERROR_MESSAGE'])) {
$(this).trigger('unchange.oc.changeMonitor')
}
})