summaryrefslogtreecommitdiff
path: root/StoneIsland/platforms/ios/www/js/lib
diff options
context:
space:
mode:
Diffstat (limited to 'StoneIsland/platforms/ios/www/js/lib')
-rwxr-xr-xStoneIsland/platforms/ios/www/js/lib/_router.js3
-rwxr-xr-xStoneIsland/platforms/ios/www/js/lib/etc/push.js8
-rwxr-xr-xStoneIsland/platforms/ios/www/js/lib/products/ProductView.js2
3 files changed, 9 insertions, 4 deletions
diff --git a/StoneIsland/platforms/ios/www/js/lib/_router.js b/StoneIsland/platforms/ios/www/js/lib/_router.js
index 9927712a..43438854 100755
--- a/StoneIsland/platforms/ios/www/js/lib/_router.js
+++ b/StoneIsland/platforms/ios/www/js/lib/_router.js
@@ -87,6 +87,9 @@ var SiteRouter = Router.extend({
else {
app.view = app[name]
}
+
+ window.FirebasePlugin && window.FirebasePlugin.setScreenName(name)
+
app.header.set_back( !! app.view.back )
app.view.show()
}.bind(this)
diff --git a/StoneIsland/platforms/ios/www/js/lib/etc/push.js b/StoneIsland/platforms/ios/www/js/lib/etc/push.js
index 14236728..00a2e839 100755
--- a/StoneIsland/platforms/ios/www/js/lib/etc/push.js
+++ b/StoneIsland/platforms/ios/www/js/lib/etc/push.js
@@ -105,8 +105,8 @@ var push = (function(){
return sdk.cms() + '/_services/push/' + key
}
push.got_push_notification = function(push_obj) {
- console.log('We received this push notification: ' + JSON.stringify(push_obj));
- window.zsazsa = push_obj
+ // console.log('We received this push notification: ' + JSON.stringify(push_obj));
+
app.blog.refresh()
push_obj.additionalData = push_obj.additionalData || {}
@@ -119,10 +119,10 @@ var push = (function(){
catch (e) {
}
- if (is_hub || push_obj.additionalData.url)) {
+ if (is_hub) {
app.intro.$alert.show().html("[ HUB UPDATED ]")
}
- else {
+ else if (! push_obj.additionalData.url) {
auth.clear_cart()
app.intro.$alert.show().html("[ STORE UPDATED ]")
}
diff --git a/StoneIsland/platforms/ios/www/js/lib/products/ProductView.js b/StoneIsland/platforms/ios/www/js/lib/products/ProductView.js
index 6a61be1b..2743946a 100755
--- a/StoneIsland/platforms/ios/www/js/lib/products/ProductView.js
+++ b/StoneIsland/platforms/ios/www/js/lib/products/ProductView.js
@@ -167,6 +167,8 @@ var ProductView = ScrollableView.extend({
this.$price.html(price)
this.$body.html(body)
+ window.FirebasePlugin && window.FirebasePlugin.setScreenName('product:' + code)
+
this.$productHeader.toggleClass("wide", title.length > 48)
var fits_large = !! this.fitLargeCodes[this.code]