diff options
Diffstat (limited to 'www/js/app.js')
-rw-r--r-- | www/js/app.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/www/js/app.js b/www/js/app.js index 2ce05e2..6e09047 100644 --- a/www/js/app.js +++ b/www/js/app.js @@ -97,6 +97,16 @@ var tpl = { return p; }, + setCurrentDraft: function(draft) { + FMS.currentDraft = draft; + localStorage.currentDraftID = draft.id; + }, + + clearCurrentDraft: function() { + FMS.currentDraftID = new FMS.Draft(); + localStorage.currentDraftID = null; + }, + initialize: function () { if ( this.initialized == 1 ) { return this; |