From 336282e0dd2fa1c7f4cbcba1c92e272fac76c327 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Thu, 19 Nov 2015 14:51:22 -0500 Subject: store auth in localstorage, add scrollers --- StoneIsland/www/js/vendor/view/serializable.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'StoneIsland/www/js/vendor/view/serializable.js') diff --git a/StoneIsland/www/js/vendor/view/serializable.js b/StoneIsland/www/js/vendor/view/serializable.js index ae742d75..5dfca06e 100644 --- a/StoneIsland/www/js/vendor/view/serializable.js +++ b/StoneIsland/www/js/vendor/view/serializable.js @@ -35,9 +35,11 @@ var SerializableView = View.extend({ msgs.push(e[1]) }.bind(this)) this.$msg.html(msgs.join("
")) + this.$msg.addClass('alert-notice') }, hide_errors: function(){ + this.$msg.removeClass('alert-notice') this.$msg.html("") }, @@ -76,4 +78,6 @@ var SerializableView = View.extend({ console.log("FAIL", data) }, -}) \ No newline at end of file +}) + +var FormView = View.extend(SerializableView).extend(ScrollableView) -- cgit v1.2.3-70-g09d2