summaryrefslogtreecommitdiff
path: root/StoneIsland/platforms/ios/www/js/lib/blogs/BlogView.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2017-09-23 20:40:15 +0200
committerJules Laplace <julescarbon@gmail.com>2017-09-23 20:40:15 +0200
commit355f58177a3f4ec6af6ffbb909de8fbc91d2f833 (patch)
treeae47fc2045af556100fff62f73955a687f5a2bf7 /StoneIsland/platforms/ios/www/js/lib/blogs/BlogView.js
parentcc8e24461c625400143677956bdffb9268d8050b (diff)
hit new endpoints
Diffstat (limited to 'StoneIsland/platforms/ios/www/js/lib/blogs/BlogView.js')
-rwxr-xr-xStoneIsland/platforms/ios/www/js/lib/blogs/BlogView.js13
1 files changed, 9 insertions, 4 deletions
diff --git a/StoneIsland/platforms/ios/www/js/lib/blogs/BlogView.js b/StoneIsland/platforms/ios/www/js/lib/blogs/BlogView.js
index a6ec75f2..598a0241 100755
--- a/StoneIsland/platforms/ios/www/js/lib/blogs/BlogView.js
+++ b/StoneIsland/platforms/ios/www/js/lib/blogs/BlogView.js
@@ -31,7 +31,14 @@ var BlogView = View.extend({
this.loaded = true
this.data = data = typeof data == "string" ? JSON.parse(data) : data
- app.store = data.store[0]
+ // sdk.env = 'test'
+
+ if (sdk.env === 'test') {
+ app.store = data.store[1]
+ }
+ else {
+ app.store = data.store[0]
+ }
switch (app.store.DepartmentStoreStatus) {
case "open":
@@ -44,8 +51,6 @@ var BlogView = View.extend({
break
}
- // sdk.env = 'test'
-
if (app.closed.storeIsClosed && sdk.env !== 'test') {
app.closed.populate(app.store.ClosedStoreImages)
}
@@ -59,7 +64,7 @@ var BlogView = View.extend({
if (sdk.env === 'test') {
app.department_id = window.location.search.substr(1) || app.department_id
console.log('using test department id', app.department_id)
- app.department_id = 'TSTSZS'
+ // app.department_id = 'TSTSZS'
}
app.collection.loaded = false
app.collection.fetch()