summaryrefslogtreecommitdiff
path: root/StoneIsland/platforms/ios/www/js/lib/account/ConsentModal.js
diff options
context:
space:
mode:
Diffstat (limited to 'StoneIsland/platforms/ios/www/js/lib/account/ConsentModal.js')
-rw-r--r--StoneIsland/platforms/ios/www/js/lib/account/ConsentModal.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/StoneIsland/platforms/ios/www/js/lib/account/ConsentModal.js b/StoneIsland/platforms/ios/www/js/lib/account/ConsentModal.js
index c4fe0b53..22f63c53 100644
--- a/StoneIsland/platforms/ios/www/js/lib/account/ConsentModal.js
+++ b/StoneIsland/platforms/ios/www/js/lib/account/ConsentModal.js
@@ -19,12 +19,16 @@ var ConsentModal = View.extend({
var status = localStorage.getItem('account_terms.consent')
if (status !== 'true') {
this.show()
+ return true
} else {
this.hide()
+ app.demand_consent = false
+ return false
}
},
show: function(){
+ app.demand_consent = true
this.$el.show()
setTimeout(function(){
this.$el.addClass('visible')
@@ -63,11 +67,13 @@ var ConsentModal = View.extend({
if (!state) {
return
}
+ app.demand_consent = false
this.hide()
localStorage.setItem('account_terms.consent', 'true')
},
logout: function(){
+ app.demand_consent = false
this.hide()
localStorage.setItem('account_terms.consent', 'false')
app.router.go("account/logout")