From 21b41e6c7cbde9d60e8e99dfce8331c218068052 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Wed, 3 Oct 2018 05:29:35 +0200 Subject: buildl --- .../platforms/android/assets/www/js/lib/account/ConsentModal.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'StoneIsland/platforms/android/assets/www/js/lib/account/ConsentModal.js') 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(){ -- cgit v1.2.3-70-g09d2