diff options
Diffstat (limited to 'www/js/app.js')
-rw-r--r-- | www/js/app.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/www/js/app.js b/www/js/app.js index fa153ba..15647ba 100644 --- a/www/js/app.js +++ b/www/js/app.js @@ -38,7 +38,7 @@ var tpl = { (function (FMS, Backbone, _, $) { _.extend(FMS, { templates: [ - 'home', 'around', 'offline', 'save_offline', 'reports', 'address_search', 'existing', 'photo', 'details', 'submit', 'submit_email', 'submit_name', 'submit_password', 'sent' + 'home', 'around', 'offline', 'save_offline', 'reports', 'address_search', 'existing', 'photo', 'details', 'submit', 'submit_email', 'submit_name', 'submit_password', 'submit_confirm', 'sent' ], isOffline: 0, @@ -105,6 +105,11 @@ var tpl = { localStorage.currentDraftID = null; }, + isLoggedIn: function() { + return FMS.currentUser && FMS.currentUser.get('email') && + FMS.currentUser.get('password') && FMS.currentUser.get('name'); + }, + initialize: function () { if ( this.initialized == 1 ) { return this; |