diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-10-03 03:08:25 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-10-03 03:08:25 +0200 |
| commit | 58eb0a78f6c0e717278a2ac2e00ef2afa2cbea2b (patch) | |
| tree | b1d64c03a9fddf3037561c1d2d42751fbc011533 /StoneIsland/www/js/lib/account/ConsentModal.js | |
| parent | 28b7ef196eaca6b9e455846cf6233bbabd9e4513 (diff) | |
do everything we can to force lockout
Diffstat (limited to 'StoneIsland/www/js/lib/account/ConsentModal.js')
| -rw-r--r-- | StoneIsland/www/js/lib/account/ConsentModal.js | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/StoneIsland/www/js/lib/account/ConsentModal.js b/StoneIsland/www/js/lib/account/ConsentModal.js index dfeb4fac..c9235498 100644 --- a/StoneIsland/www/js/lib/account/ConsentModal.js +++ b/StoneIsland/www/js/lib/account/ConsentModal.js @@ -18,11 +18,14 @@ var ConsentModal = View.extend({ check: function(){ var status = localStorage.getItem('account_terms.consent') + console.log('account_terms.consent', status) if (status !== 'true') { + console.log('we demand consent!') app.demand_consent = true this.show() return true } else { + console.log('already received consent!') this.hide() app.demand_consent = false return false @@ -35,8 +38,10 @@ var ConsentModal = View.extend({ setTimeout(function(){ this.$el.addClass('visible') }.bind(this), 20) - app.curtain.show() - app.curtain.classList.add('opaque') + app.curtain.show('opaque') + setTimeout(function(){ + app.curtain.show('opaque') + }, 300) }, hide: function(){ @@ -44,7 +49,7 @@ var ConsentModal = View.extend({ this.$el.removeClass('visible') setTimeout(function(){ this.$el.hide() - app.curtain.classList.remove('opaque') + app.curtain.$el.removeClass('opaque') }.bind(this), 300) }, |
