summaryrefslogtreecommitdiff
path: root/StoneIsland/platforms/ios/www/js/lib/view/Serializable.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2019-09-03 15:18:23 +0200
committerJules Laplace <julescarbon@gmail.com>2019-09-03 15:18:23 +0200
commit6f2af841c17ff4ed28d40121114825a40e8cf6fa (patch)
tree5cc68e65c61e85ada066e45cf62805b60b24cf67 /StoneIsland/platforms/ios/www/js/lib/view/Serializable.js
parentbea0583348a3e7de85d4fed5e7fe206fb90fcc73 (diff)
updating rems
Diffstat (limited to 'StoneIsland/platforms/ios/www/js/lib/view/Serializable.js')
-rwxr-xr-xStoneIsland/platforms/ios/www/js/lib/view/Serializable.js7
1 files changed, 5 insertions, 2 deletions
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("<br>"))
+ // this.$msg.html(msgs.join("<br>"))
this.$msg.addClass('alert-notice')
},