summaryrefslogtreecommitdiff
path: root/StoneIsland/www/js/lib
diff options
context:
space:
mode:
Diffstat (limited to 'StoneIsland/www/js/lib')
-rwxr-xr-xStoneIsland/www/js/lib/_router.js3
-rwxr-xr-xStoneIsland/www/js/lib/blogs/BlogView.js1
-rwxr-xr-xStoneIsland/www/js/lib/view/Serializable.js4
3 files changed, 6 insertions, 2 deletions
diff --git a/StoneIsland/www/js/lib/_router.js b/StoneIsland/www/js/lib/_router.js
index 19bd3247..19b6fd63 100755
--- a/StoneIsland/www/js/lib/_router.js
+++ b/StoneIsland/www/js/lib/_router.js
@@ -51,6 +51,7 @@ var SiteRouter = Router.extend({
initial_route: null,
launch: function(){
+ console.log("LAUNCH!")
if (this.initial_route) {
this.parseRoute( this.initial_route )
}
@@ -89,7 +90,7 @@ var SiteRouter = Router.extend({
}
// window.FirebasePlugin && window.FirebasePlugin.setScreenName(name)
-
+console.log("view >>", app.view)
app.header.set_back( !! app.view.back )
app.view.show()
}.bind(this)
diff --git a/StoneIsland/www/js/lib/blogs/BlogView.js b/StoneIsland/www/js/lib/blogs/BlogView.js
index 6eea977f..e9086982 100755
--- a/StoneIsland/www/js/lib/blogs/BlogView.js
+++ b/StoneIsland/www/js/lib/blogs/BlogView.js
@@ -54,6 +54,7 @@ var BlogView = View.extend({
app.closed.storeClosedMessageTwo = app.store.StoreClosedMessageTwo
break
}
+ console.log(data)
if (app.closed.storeIsClosed && sdk.env !== 'test') {
app.closed.populate(app.store.ClosedStoreImages)
diff --git a/StoneIsland/www/js/lib/view/Serializable.js b/StoneIsland/www/js/lib/view/Serializable.js
index de5fe951..f1c61072 100755
--- a/StoneIsland/www/js/lib/view/Serializable.js
+++ b/StoneIsland/www/js/lib/view/Serializable.js
@@ -105,7 +105,9 @@ var SerializableView = View.extend({
var msgs = []
errors.forEach(function(e, i){
if (i > 0) { return }
- this.$("[name=" + e[0] + "]").addClass('error_hilite')
+ if (e[0]) {
+ this.$("[name=" + e[0] + "]").addClass('error_hilite')
+ }
msgs.push(e[1])
}.bind(this))
this.$msg.html(msgs.join("<br>"))