diff options
| author | Jules Laplace <jules@okfoc.us> | 2015-11-30 23:58:19 -0500 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2015-11-30 23:58:19 -0500 |
| commit | 881c5de5b7709d06e88fdf554a021b8f1eddb9ed (patch) | |
| tree | 252676e443822412a624ac5125d7c82f7b50db18 /StoneIsland/www/js/lib/view | |
| parent | 848730bdbc1e1b2c81274385d85fd385422323d8 (diff) | |
more cart
Diffstat (limited to 'StoneIsland/www/js/lib/view')
| -rw-r--r-- | StoneIsland/www/js/lib/view/Serializable.js | 8 |
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) |
