diff options
Diffstat (limited to 'www/js')
-rw-r--r-- | www/js/app.js | 8 | ||||
-rw-r--r-- | www/js/config.js-example | 7 | ||||
-rw-r--r-- | www/js/views/around.js | 2 |
3 files changed, 13 insertions, 4 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(); + } }); } }); diff --git a/www/js/config.js-example b/www/js/config.js-example index 2fceda7..2e8017b 100644 --- a/www/js/config.js-example +++ b/www/js/config.js-example @@ -43,7 +43,12 @@ var CONFIG = { image_svg: 'images/pin.svg', background_svg: 'images/pin_shadow.svg' } - } + }, + + // Set this to true if you want to disable the help button on the right hand + // side of the screen. NB you'll also need to hide #display-help and #help + // elements in your CSS. + HELP_DISABLED: false }; diff --git a/www/js/views/around.js b/www/js/views/around.js index cb304ee..bafc65d 100644 --- a/www/js/views/around.js +++ b/www/js/views/around.js @@ -197,7 +197,7 @@ }, displayHelpIfFirstTime: function() { - if ( !FMS.usedBefore ) { + if ( !FMS.usedBefore && !CONFIG.HELP_DISABLED ) { FMS.helpShow(); } }, |