From 9e6b80c0321ba1fbe1c824083acbeeac7b7b94d4 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Sun, 10 Dec 2017 07:02:47 +0100 Subject: post form and other stuff --- public/assets/js/vendor/view/formview.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'public/assets/js/vendor/view/formview.js') diff --git a/public/assets/js/vendor/view/formview.js b/public/assets/js/vendor/view/formview.js index 2c54d3e..485db7a 100644 --- a/public/assets/js/vendor/view/formview.js +++ b/public/assets/js/vendor/view/formview.js @@ -13,7 +13,6 @@ var FormView = View.extend({ } this.$form = this.$("form") this.$errors = this.$(".errors") - this.$errorList = this.$(".errorList") }, reset: function(){ @@ -22,9 +21,9 @@ var FormView = View.extend({ showErrors: function(errors){ if (errors && errors.length) { - this.$errorList.empty(); + this.$errors.empty(); for (var i in errors) { - this.$errorList.append('
' + errors[i] + '
'); + this.$errors.append('
' + errors[i] + '
'); } this.$errors.css("opacity", 1.0); setTimeout(function(){ -- cgit v1.2.3-70-g09d2