aboutsummaryrefslogtreecommitdiffstats
path: root/www/js/app.js
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2013-04-08 18:48:50 +0100
committerStruan Donald <struan@exo.org.uk>2013-04-08 18:55:37 +0100
commitb9b8a8d1d11fe77b53cea9bfd73d36e459668aa9 (patch)
treeb4fc6edb1e2eea2a7b5e7e565ef8ab008fab9fab /www/js/app.js
parenta19459b65a8dbbc3ee12fbf7852956a1b322e3e6 (diff)
use id and not cid as we cannot look up using when we reload
Diffstat (limited to 'www/js/app.js')
-rw-r--r--www/js/app.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/www/js/app.js b/www/js/app.js
index 8b94fbc..f717da9 100644
--- a/www/js/app.js
+++ b/www/js/app.js
@@ -56,7 +56,7 @@ var tpl = {
FMS.router.pause();
FMS.allDrafts.add( FMS.currentDraft );
FMS.currentDraft.save();
- localStorage.currentDraftID = FMS.currentDraft.cid;
+ localStorage.currentDraftID = FMS.currentDraft.id;
},
loadCurrentDraft: function() {