diff options
Diffstat (limited to 'StoneIsland/platforms/ios/www/js/lib/blogs/BlogView.js')
| -rwxr-xr-x | StoneIsland/platforms/ios/www/js/lib/blogs/BlogView.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/StoneIsland/platforms/ios/www/js/lib/blogs/BlogView.js b/StoneIsland/platforms/ios/www/js/lib/blogs/BlogView.js index 9190634c..d37846c2 100755 --- a/StoneIsland/platforms/ios/www/js/lib/blogs/BlogView.js +++ b/StoneIsland/platforms/ios/www/js/lib/blogs/BlogView.js @@ -61,9 +61,11 @@ var BlogView = View.extend({ } else { app.departments = app.store.Departments - app.department_id = app.store.Departments[0].uri + if (app.store.Departments.length) { + app.department_id = app.store.Departments[0].uri + app.collection.setCollectionName( app.store.Departments[0].text ) + } $("#collections h1").toggleClass("single-dept", app.store.Departments.length == 1) - app.collection.setCollectionName( app.store.Departments[0].text ) //// demo department for shoes with weird SizeTypeId // app.department_id = "NKDrtSC" if (sdk.env === 'test') { |
