diff options
| author | Jules Laplace <jules@okfoc.us> | 2015-11-19 14:51:22 -0500 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2015-11-19 14:51:22 -0500 |
| commit | 336282e0dd2fa1c7f4cbcba1c92e272fac76c327 (patch) | |
| tree | 9f2c9cfb84e1d47208ac1c46781130ae9bf85783 /StoneIsland/www/js/vendor/view/serializable.js | |
| parent | d18761c6a093f3dd8bfee5fb7b91f7fb17465046 (diff) | |
store auth in localstorage, add scrollers
Diffstat (limited to 'StoneIsland/www/js/vendor/view/serializable.js')
| -rw-r--r-- | StoneIsland/www/js/vendor/view/serializable.js | 6 |
1 files changed, 5 insertions, 1 deletions
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("<br>")) + 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) |
