diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2019-09-03 15:18:23 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2019-09-03 15:18:23 +0200 |
| commit | 6f2af841c17ff4ed28d40121114825a40e8cf6fa (patch) | |
| tree | 5cc68e65c61e85ada066e45cf62805b60b24cf67 /StoneIsland/platforms/android/assets/www/js/lib/view/Serializable.js | |
| parent | bea0583348a3e7de85d4fed5e7fe206fb90fcc73 (diff) | |
updating rems
Diffstat (limited to 'StoneIsland/platforms/android/assets/www/js/lib/view/Serializable.js')
| -rwxr-xr-x | StoneIsland/platforms/android/assets/www/js/lib/view/Serializable.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/StoneIsland/platforms/android/assets/www/js/lib/view/Serializable.js b/StoneIsland/platforms/android/assets/www/js/lib/view/Serializable.js index 4155f102..3181fddd 100755 --- a/StoneIsland/platforms/android/assets/www/js/lib/view/Serializable.js +++ b/StoneIsland/platforms/android/assets/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') }, |
