summaryrefslogtreecommitdiff
path: root/StoneIsland/www/js/lib
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2016-01-20 03:23:17 +0100
committerJules Laplace <jules@okfoc.us>2016-01-20 03:23:17 +0100
commit77adbf331bb592b9a4e5e12a7507b372ef812ec0 (patch)
tree94768ce900ddaf1935ec16a0a21a983ecd5b5791 /StoneIsland/www/js/lib
parent5034bba697b51fddc64f956fb087254bf85ccd14 (diff)
store closed messages
Diffstat (limited to 'StoneIsland/www/js/lib')
-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()
}
},