summaryrefslogtreecommitdiff
path: root/StoneIsland/platforms/ios/www/js/lib/view/Serializable.js
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2015-12-02 21:00:30 -0500
committerJules Laplace <jules@okfoc.us>2015-12-02 21:00:30 -0500
commit393dc6eaf8d5a119c9cf71f1f5dac44abf70db59 (patch)
tree84d2856b9b7c97731970347a9357722f63679b4e /StoneIsland/platforms/ios/www/js/lib/view/Serializable.js
parentd6910087feae6cd30141a615f2de753c37af14b8 (diff)
build..
Diffstat (limited to 'StoneIsland/platforms/ios/www/js/lib/view/Serializable.js')
-rw-r--r--StoneIsland/platforms/ios/www/js/lib/view/Serializable.js9
1 files changed, 6 insertions, 3 deletions
diff --git a/StoneIsland/platforms/ios/www/js/lib/view/Serializable.js b/StoneIsland/platforms/ios/www/js/lib/view/Serializable.js
index b1e095d3..f9abd011 100644
--- a/StoneIsland/platforms/ios/www/js/lib/view/Serializable.js
+++ b/StoneIsland/platforms/ios/www/js/lib/view/Serializable.js
@@ -68,9 +68,11 @@ var SerializableView = View.extend({
var data = data || this.serialize()
var errors = errors || []
var presence_msgs = this.validate_presence || {}
- Object.keys(presence_msgs).forEach(function(k){
- if (! data[k]) errors.push( [ k, presence_msgs[k] ] )
- })
+ if (! this.disabled) {
+ Object.keys(presence_msgs).forEach(function(k){
+ if (! data[k]) errors.push( [ k, presence_msgs[k] ] )
+ })
+ }
this.validate_fields && this.validate_fields(data, errors)
this.cc && this.cc.validate(data, errors)
this.address && this.address.validate(data, errors)
@@ -78,6 +80,7 @@ var SerializableView = View.extend({
},
show_errors: function(errors){
+ console.log(errors)
var msgs = []
errors.forEach(function(e, i){
if (i > 0) { return }