diff options
Diffstat (limited to 'www/js/views/offline.js')
-rw-r--r-- | www/js/views/offline.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/www/js/views/offline.js b/www/js/views/offline.js index 8f963f6..342ee1a 100644 --- a/www/js/views/offline.js +++ b/www/js/views/offline.js @@ -113,15 +113,13 @@ var that = this; del.done( function() { that.draftDeleted(); } ); } else { - localStorage.currentDraftID = null; - localStorage.currentDraft = new FMS.Draft(); + FMS.clearCurrentDraft(); this.navigate( this.next, 'left' ); } }, draftDeleted: function() { - localStorage.currentDraftID = null; - localStorage.currentDraft = new FMS.Draft(); + FMS.clearCurrentDraft(); this.navigate( this.next, 'left' ); }, |