diff options
| author | rr- | 2016-04-17 00:03:45 +0200 |
|---|---|---|
| committer | rr- | 2016-04-17 00:03:45 +0200 |
| commit | 925bfcecc5bb29bf4cff521d82b569a078bc2612 (patch) | |
| tree | 97bb47957ec97b3e7985c30630f6e521bcc50189 /client/js/controllers/help_controller.js | |
| parent | 9247e115968e206eea1105f6eba664c824065ffa (diff) | |
client/help: split search help into sections
Diffstat (limited to 'client/js/controllers/help_controller.js')
| -rw-r--r-- | client/js/controllers/help_controller.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/client/js/controllers/help_controller.js b/client/js/controllers/help_controller.js index 2cc53a2..797d2ac 100644 --- a/client/js/controllers/help_controller.js +++ b/client/js/controllers/help_controller.js @@ -14,12 +14,18 @@ class HelpController { page( '/help/:section', (ctx, next) => { this.showHelpRoute(ctx.params.section); }); + page( + '/help/:section/:subsection', + (ctx, next) => { + this.showHelpRoute(ctx.params.section, ctx.params.subsection); + }); } - showHelpRoute(section) { + showHelpRoute(section, subsection) { topNavController.activate('help'); this.helpView.render({ section: section, + subsection: subsection, }); } } |