diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-08-15 12:58:05 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-08-15 12:58:05 +0200 |
| commit | 590a9772063bd0774c6ad4c099447472294deecd (patch) | |
| tree | 3039838ea3edde5f4516ec9286072967c5c9d36a /StoneIsland/www/js/lib/_router.js | |
| parent | 28553fe863564b44f810eacc0ce3f45608346297 (diff) | |
consent modal stuff
Diffstat (limited to 'StoneIsland/www/js/lib/_router.js')
| -rwxr-xr-x | StoneIsland/www/js/lib/_router.js | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/StoneIsland/www/js/lib/_router.js b/StoneIsland/www/js/lib/_router.js index 723bb944..1d9010ff 100755 --- a/StoneIsland/www/js/lib/_router.js +++ b/StoneIsland/www/js/lib/_router.js @@ -42,12 +42,12 @@ var SiteRouter = Router.extend({ initialize: function(){ var fn - for (var route in this.routes) { - fn = this.routes[route] - if (! this[fn]) { - this[fn] = this.default_view(fn) - } - } + for (var route in this.routes) { + fn = this.routes[route] + if (! this[fn]) { + this[fn] = this.default_view(fn) + } + } }, initial_route: null, @@ -75,6 +75,9 @@ var SiteRouter = Router.extend({ default_view: function(name){ var fn = function(){ console.log(name) + if (app.demand_consent && app.account.consent.check()) { + return + } if (app.view != app.login && app.view != app.signin) { app.last_view = app.view } |
