diff options
author | Dave Arter <davea@mysociety.org> | 2017-06-13 13:33:29 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2017-12-01 14:47:13 +0000 |
commit | c3214d95c633d63a93c67bba4879396bee465a99 (patch) | |
tree | 6afbba2134ea055f0d669f8fc7dab593b5a7b2cc /www/js/app.js | |
parent | 79e164a33e627c23269a6ae8bde5c062bd0085b6 (diff) |
Add HELP_DISABLED config key to remove help button from UI
Diffstat (limited to 'www/js/app.js')
-rw-r--r-- | www/js/app.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/www/js/app.js b/www/js/app.js index 9e8ced1..61ee590 100644 --- a/www/js/app.js +++ b/www/js/app.js @@ -340,7 +340,9 @@ var tpl = { FMS.checkOnlineStatus(); FMS.loadCurrentDraft(); FMS.checkLoggedInStatus(); - FMS.setupHelp(); + if (!CONFIG.HELP_DISABLED) { + FMS.setupHelp(); + } Backbone.history.start(); if ( navigator && navigator.splashscreen ) { @@ -348,7 +350,9 @@ var tpl = { } else { $('#load-screen').hide(); } - $('#display-help').show(); + if (!CONFIG.HELP_DISABLED) { + $('#display-help').show(); + } }); } }); |