From 712deb604be9d608b990c6ba1f9af2560e8f20e3 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Sun, 17 Jun 2018 18:14:40 +0200 Subject: confirm error msg better --- StoneIsland/www/js/lib/view/Serializable.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'StoneIsland/www/js/lib/view/Serializable.js') 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("
")) -- cgit v1.2.3-70-g09d2