summaryrefslogtreecommitdiff
path: root/StoneIsland/www/js/vendor/view/serializable.js
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2015-11-19 19:16:15 -0500
committerJules Laplace <jules@okfoc.us>2015-11-19 19:21:19 -0500
commit261857fce969790aa87498100cf353fa494080c8 (patch)
treec5d01aaa59c0dc65ebf4fb382dfa570d3bd15c79 /StoneIsland/www/js/vendor/view/serializable.js
parent06910c8fd4df3daa47f5cdfcbc687b1072909f52 (diff)
accountview
Diffstat (limited to 'StoneIsland/www/js/vendor/view/serializable.js')
-rw-r--r--StoneIsland/www/js/vendor/view/serializable.js9
1 files changed, 4 insertions, 5 deletions
diff --git a/StoneIsland/www/js/vendor/view/serializable.js b/StoneIsland/www/js/vendor/view/serializable.js
index 5dfca06e..80218266 100644
--- a/StoneIsland/www/js/vendor/view/serializable.js
+++ b/StoneIsland/www/js/vendor/view/serializable.js
@@ -46,8 +46,7 @@ var SerializableView = View.extend({
save: function(e){
e && e.preventDefault()
- var data = this.serialize()
- var errors = this.validate(data)
+ var errors = this.validate()
if (errors) {
this.show_errors(errors)
return
@@ -56,15 +55,15 @@ var SerializableView = View.extend({
this.hide_errors()
}
- // app.curtain.show()
+ app.curtain.show("loading")
this.action({
data: data,
success: function(data){
- // app.curtain.hide()
+ app.curtain.hide("loading")
this.success(data)
}.bind(this),
error: function(data){
- // app.curtain.hide()
+ app.curtain.hide("loading")
this.error(data)
}.bind(this),
})