diff options
Diffstat (limited to 'www/js')
-rw-r--r-- | www/js/app.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/www/js/app.js b/www/js/app.js index f416781..e8b2b21 100644 --- a/www/js/app.js +++ b/www/js/app.js @@ -90,9 +90,11 @@ var tpl = { saveCurrentDraft: function() { FMS.router.pause(); - FMS.allDrafts.add( FMS.currentDraft ); - FMS.currentDraft.save(); - localStorage.currentDraftID = FMS.currentDraft.id; + if ( FMS.currentDraft.isPartial() ) { + FMS.allDrafts.add( FMS.currentDraft ); + FMS.currentDraft.save(); + localStorage.currentDraftID = FMS.currentDraft.id; + } }, loadCurrentDraft: function() { |