summaryrefslogtreecommitdiff
path: root/StoneIsland/www/js
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2015-11-19 21:06:26 -0500
committerJules Laplace <jules@okfoc.us>2015-11-19 21:06:26 -0500
commit0f11af130f866622f5bd1c96cf71b704e113e360 (patch)
tree021060be8fd55e77d47d3d6f9a10147a8cda566e /StoneIsland/www/js
parentef5b4aaca99b811d0399f40d4ca79c642cf6bf31 (diff)
basic closed store view styling
Diffstat (limited to 'StoneIsland/www/js')
-rw-r--r--StoneIsland/www/js/lib/_router.js3
-rw-r--r--StoneIsland/www/js/lib/account/OrdersView.js1
-rw-r--r--StoneIsland/www/js/lib/blogs/BlogView.js2
-rw-r--r--StoneIsland/www/js/lib/products/ClosedStoreView.js4
4 files changed, 8 insertions, 2 deletions
diff --git a/StoneIsland/www/js/lib/_router.js b/StoneIsland/www/js/lib/_router.js
index c6f543a5..712d3db2 100644
--- a/StoneIsland/www/js/lib/_router.js
+++ b/StoneIsland/www/js/lib/_router.js
@@ -59,6 +59,9 @@ var SiteRouter = Router.extend({
default_view: function(name){
var fn = function(){
console.log(name)
+ if (app.view && app.view.hide) {
+ app.view.hide()
+ }
if (name.match(/\./)) {
var n = name.split(".")
console.log(name, n)
diff --git a/StoneIsland/www/js/lib/account/OrdersView.js b/StoneIsland/www/js/lib/account/OrdersView.js
index 78a67e43..f9a2a35c 100644
--- a/StoneIsland/www/js/lib/account/OrdersView.js
+++ b/StoneIsland/www/js/lib/account/OrdersView.js
@@ -13,6 +13,7 @@ var OrdersView = View.extend({
},
show: function(){
+ app.footer.hide()
document.body.className = "orders"
this.el.className = "list"
},
diff --git a/StoneIsland/www/js/lib/blogs/BlogView.js b/StoneIsland/www/js/lib/blogs/BlogView.js
index 54030bd8..50313aa8 100644
--- a/StoneIsland/www/js/lib/blogs/BlogView.js
+++ b/StoneIsland/www/js/lib/blogs/BlogView.js
@@ -32,7 +32,7 @@ var BlogView = View.extend({
app[page.tag].populate(page)
})
if (data.store[0].StoreIsOpen !== "True") {
- app.store.ClosedStoreImages
+ app.closed.populate(data.store[0].ClosedStoreImages)
}
},
diff --git a/StoneIsland/www/js/lib/products/ClosedStoreView.js b/StoneIsland/www/js/lib/products/ClosedStoreView.js
index 02e7b312..c4e929b3 100644
--- a/StoneIsland/www/js/lib/products/ClosedStoreView.js
+++ b/StoneIsland/www/js/lib/products/ClosedStoreView.js
@@ -1,4 +1,4 @@
-var ClosedStoreView = new View ({
+var ClosedStoreView = View.extend({
el: "#closed",
@@ -16,7 +16,9 @@ var ClosedStoreView = new View ({
},
show: function(){
+ document.body.className = "closed"
this.animate()
+ app.footer.hide()
},
hide: function(){