diff options
author | Struan Donald <struan@exo.org.uk> | 2013-08-14 10:34:20 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2013-08-14 10:34:20 +0100 |
commit | 3fb91edf5cd0711e4102d2ebaeff73db797afe0d (patch) | |
tree | 8f8aeaec1058bca58a0f9d82196e1082b9f06f4c /src/js/app.js | |
parent | 2da52b3280bc564c684599bdfe54d7eaedacf1ac (diff) |
move help content to a template
Rather than hard coding it into index.html. Loaded by the help init code
Diffstat (limited to 'src/js/app.js')
-rw-r--r-- | src/js/app.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/js/app.js b/src/js/app.js index 74db8fe..539ad43 100644 --- a/src/js/app.js +++ b/src/js/app.js @@ -38,7 +38,7 @@ var tpl = { (function (FMS, Backbone, _, $) { _.extend(FMS, { templates: [ - 'home', 'around', 'offline', 'save_offline', 'reports', 'login', 'address_search', 'existing', 'photo', 'details', 'details_extra', 'submit', 'submit_email', 'submit_name', 'submit_set_password', 'submit_password', 'submit_confirm', 'sent' + 'home', 'help', 'around', 'offline', 'save_offline', 'reports', 'login', 'address_search', 'existing', 'photo', 'details', 'details_extra', 'submit', 'submit_email', 'submit_name', 'submit_set_password', 'submit_password', 'submit_confirm', 'sent' ], usedBefore: 0, @@ -148,6 +148,9 @@ var tpl = { viewHeight = $(window).height(), helpHeight = viewHeight; + var template = _.template( tpl.get('help') ); + help.html(template()); + console.log( 'viewheight: ' + viewHeight ); console.log( 'top: ' + top ); |