diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-10-03 05:29:35 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-10-03 05:29:35 +0200 |
| commit | 21b41e6c7cbde9d60e8e99dfce8331c218068052 (patch) | |
| tree | 4cc513245f2e0b822c9083b2d2e30556894d3709 /StoneIsland/platforms/android/assets/www/js/lib/account/ConsentModal.js | |
| parent | 58eb0a78f6c0e717278a2ac2e00ef2afa2cbea2b (diff) | |
buildl
Diffstat (limited to 'StoneIsland/platforms/android/assets/www/js/lib/account/ConsentModal.js')
| -rw-r--r-- | StoneIsland/platforms/android/assets/www/js/lib/account/ConsentModal.js | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/StoneIsland/platforms/android/assets/www/js/lib/account/ConsentModal.js b/StoneIsland/platforms/android/assets/www/js/lib/account/ConsentModal.js index 9fc736dc..c9235498 100644 --- a/StoneIsland/platforms/android/assets/www/js/lib/account/ConsentModal.js +++ b/StoneIsland/platforms/android/assets/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.$el.addClass('opaque') + app.curtain.show('opaque') + setTimeout(function(){ + app.curtain.show('opaque') + }, 300) }, hide: function(){ |
