Don't save history to localstorage in save mode

(to avoid saving remote merges / conflict resolutions)
This commit is contained in:
Bryan Housel
2015-02-25 23:35:06 -05:00
parent 57e5113b1e
commit 15bc08795d

View File

@@ -141,7 +141,7 @@ window.iD = function () {
};
context.save = function() {
if (inIntro) return;
if (inIntro || (mode && mode.id === 'save')) return;
history.save();
if (history.hasChanges()) return t('save.unsaved_changes');
};