summaryrefslogtreecommitdiff
path: root/StoneIsland/www/js/vendor/view/serializable.js
diff options
context:
space:
mode:
Diffstat (limited to 'StoneIsland/www/js/vendor/view/serializable.js')
-rw-r--r--StoneIsland/www/js/vendor/view/serializable.js6
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)