aboutsummaryrefslogtreecommitdiffstats
path: root/src/js/app.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/js/app.js')
-rw-r--r--src/js/app.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/js/app.js b/src/js/app.js
index 69edd89..4709ea6 100644
--- a/src/js/app.js
+++ b/src/js/app.js
@@ -90,9 +90,9 @@ var tpl = {
}
},
- saveCurrentDraft: function() {
+ saveCurrentDraft: function(force) {
FMS.router.pause();
- if ( FMS.currentDraft.isPartial() ) {
+ if ( force || FMS.currentDraft.isPartial() ) {
FMS.allDrafts.add( FMS.currentDraft );
FMS.currentDraft.save();
localStorage.currentDraftID = FMS.currentDraft.id;