summaryrefslogtreecommitdiff
path: root/StoneIsland/www/js
diff options
context:
space:
mode:
Diffstat (limited to 'StoneIsland/www/js')
-rwxr-xr-xStoneIsland/www/js/lib/blogs/BlogView.js3
-rwxr-xr-xStoneIsland/www/js/lib/products/ClosedStoreView.js8
2 files changed, 6 insertions, 5 deletions
diff --git a/StoneIsland/www/js/lib/blogs/BlogView.js b/StoneIsland/www/js/lib/blogs/BlogView.js
index d68f2574..a53f0490 100755
--- a/StoneIsland/www/js/lib/blogs/BlogView.js
+++ b/StoneIsland/www/js/lib/blogs/BlogView.js
@@ -35,7 +35,8 @@ var BlogView = View.extend({
break
case "closed":
app.closed.storeIsClosed = true
- app.closed.storeOpenDate = data.store[0].OpensOn
+ app.closed.storeClosedMessageOne = data.store[0].StoreClosedMessageOne
+ app.closed.storeClosedMessageTwo = data.store[0].StoreClosedMessageTwo
break
}
diff --git a/StoneIsland/www/js/lib/products/ClosedStoreView.js b/StoneIsland/www/js/lib/products/ClosedStoreView.js
index 84496822..2f242ba4 100755
--- a/StoneIsland/www/js/lib/products/ClosedStoreView.js
+++ b/StoneIsland/www/js/lib/products/ClosedStoreView.js
@@ -22,12 +22,12 @@ var ClosedStoreView = View.extend({
document.body.className = "closed"
this.animate()
app.footer.hide()
- if (this.storeOpenDate) {
- var date = this.storeOpenDate
- $(".closed_store_msg h3").html("THIS STORE WILL OPEN ON " + date)
+ $(".closed_store_msg h3").html(app.closed.storeClosedMessageOne || "THIS STORE IS CURRENTLY CLOSED")
+ if (app.closed.storeClosedMessageTwo) {
+ $(".closed_store_msg h4").show().html(app.closed.storeClosedMessageTwo)
}
else {
- $(".closed_store_msg h3").html("THIS STORE IS CURRENTLY CLOSED")
+ $(".closed_store_msg h4").hide()
}
},