summaryrefslogtreecommitdiff
path: root/StoneIsland/www/js/vendor/view/serializable.js
diff options
context:
space:
mode:
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),
})