summaryrefslogtreecommitdiff
path: root/StoneIsland/www/js/lib/products
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2015-12-03 14:58:47 -0500
committerJules Laplace <jules@okfoc.us>2015-12-03 14:58:47 -0500
commit0e783ecb14849eb8ab36f3c4d591ffdbb2e8e942 (patch)
tree205b93dfac15aab6bf434ce99c4322b72bcb77b8 /StoneIsland/www/js/lib/products
parent83b5ea8a94a3308e3401c01366bbae561f32a524 (diff)
openson ui
Diffstat (limited to 'StoneIsland/www/js/lib/products')
-rw-r--r--StoneIsland/www/js/lib/products/ClosedStoreView.js9
-rw-r--r--StoneIsland/www/js/lib/products/CollectionView.js1
2 files changed, 10 insertions, 0 deletions
diff --git a/StoneIsland/www/js/lib/products/ClosedStoreView.js b/StoneIsland/www/js/lib/products/ClosedStoreView.js
index 77dc15b1..5f8c1e84 100644
--- a/StoneIsland/www/js/lib/products/ClosedStoreView.js
+++ b/StoneIsland/www/js/lib/products/ClosedStoreView.js
@@ -21,6 +21,15 @@ var ClosedStoreView = View.extend({
document.body.className = "closed"
this.animate()
app.footer.hide()
+ console.log(this)
+ if (this.storeOpenDate) {
+ var date = moment(this.storeOpenDate).format("MM/DD")
+ console.log(date)
+ $(".closed_store_msg h3").html("THIS STORE WILL OPEN ON " + date)
+ }
+ else {
+ $(".closed_store_msg h3").html("THIS STORE IS CURRENTLY CLOSED")
+ }
},
hide: function(){
diff --git a/StoneIsland/www/js/lib/products/CollectionView.js b/StoneIsland/www/js/lib/products/CollectionView.js
index 056f2a52..d4315514 100644
--- a/StoneIsland/www/js/lib/products/CollectionView.js
+++ b/StoneIsland/www/js/lib/products/CollectionView.js
@@ -26,6 +26,7 @@ var CollectionView = ScrollableView.extend({
show: function(){
if (app.closed.storeIsClosed) {
+ // (! this.storeOpenDate || moment().diff(this.storeOpenDate) > 0 ) ) {
return app.closed.show()
}
app.footer.show("FILTER")