From 6f2af841c17ff4ed28d40121114825a40e8cf6fa Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Tue, 3 Sep 2019 15:18:23 +0200 Subject: updating rems --- StoneIsland/platforms/ios/www/js/lib/view/Serializable.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'StoneIsland/platforms/ios/www/js/lib/view/Serializable.js') diff --git a/StoneIsland/platforms/ios/www/js/lib/view/Serializable.js b/StoneIsland/platforms/ios/www/js/lib/view/Serializable.js index 4155f102..3181fddd 100755 --- a/StoneIsland/platforms/ios/www/js/lib/view/Serializable.js +++ b/StoneIsland/platforms/ios/www/js/lib/view/Serializable.js @@ -105,6 +105,7 @@ var SerializableView = View.extend({ console.log(errors) var msgs = [] this.$('.error_hilite').removeClass('error_hilite') + this.$('.err').html('') errors.forEach(function(e, i){ // if (i > 0) { return } if (e[0]) { @@ -112,13 +113,15 @@ var SerializableView = View.extend({ var el = $el[0] if (el && el.nodeName === 'SELECT') { $el.parent().addClass('error_hilite') + $el.parent().next('.err').html(e[1]) } else { $el.addClass('error_hilite') + $el.next('.err').html(e[1]) } } - msgs.push(e[1]) + // msgs.push(e[1]) }.bind(this)) - this.$msg.html(msgs.join("
")) + // this.$msg.html(msgs.join("
")) this.$msg.addClass('alert-notice') }, -- cgit v1.2.3-70-g09d2