diff options
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 } |
