diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2014-12-18 15:17:57 +0100 |
---|---|---|
committer | Stas Vilchik <vilchiks@gmail.com> | 2014-12-22 10:46:42 +0100 |
commit | 4b69d42d7f83aa22853dffbf2b49acda85c7ef99 (patch) | |
tree | 9a92219c8ebc0afeade341755e7ba92ded6502f3 /server/sonar-web/src/main/coffee/issues/router.coffee | |
parent | 2b6c121e6764b6baf106c94767d8daedd85b7839 (diff) | |
download | sonarqube-4b69d42d7f83aa22853dffbf2b49acda85c7ef99.tar.gz sonarqube-4b69d42d7f83aa22853dffbf2b49acda85c7ef99.zip |
SONAR-5820 Create a new coding rules page
Diffstat (limited to 'server/sonar-web/src/main/coffee/issues/router.coffee')
-rw-r--r-- | server/sonar-web/src/main/coffee/issues/router.coffee | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/server/sonar-web/src/main/coffee/issues/router.coffee b/server/sonar-web/src/main/coffee/issues/router.coffee index b85773f6c43..79057861a9b 100644 --- a/server/sonar-web/src/main/coffee/issues/router.coffee +++ b/server/sonar-web/src/main/coffee/issues/router.coffee @@ -1,21 +1,18 @@ define [ - 'backbone' + 'components/navigator/router' ], ( - Backbone + Router ) -> - class extends Backbone.Router - routeSeparator: '|' - + class extends Router routes: '': 'emptyQuery' ':query': 'index' initialize: (options) -> - @options = options - @listenTo @options.app.state, 'change:query', @updateRoute - @listenTo @options.app.state, 'change:filter', @updateRoute + super + @listenTo options.app.state, 'change:filter', @updateRoute emptyQuery: -> @@ -36,9 +33,3 @@ define [ @options.app.controller.applyFilter filter else @options.app.state.setQuery query - - - updateRoute: -> - route = @options.app.controller.getRoute() - @navigate route - |