summaryrefslogtreecommitdiff
path: root/StoneIsland/www/js/lib/view
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2015-11-30 23:58:19 -0500
committerJules Laplace <jules@okfoc.us>2015-11-30 23:58:19 -0500
commit881c5de5b7709d06e88fdf554a021b8f1eddb9ed (patch)
tree252676e443822412a624ac5125d7c82f7b50db18 /StoneIsland/www/js/lib/view
parent848730bdbc1e1b2c81274385d85fd385422323d8 (diff)
more cart
Diffstat (limited to 'StoneIsland/www/js/lib/view')
-rw-r--r--StoneIsland/www/js/lib/view/Serializable.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/StoneIsland/www/js/lib/view/Serializable.js b/StoneIsland/www/js/lib/view/Serializable.js
index b1e095d3..6ef8eda3 100644
--- a/StoneIsland/www/js/lib/view/Serializable.js
+++ b/StoneIsland/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)