summaryrefslogtreecommitdiff
path: root/StoneIsland/www/js/lib/view/Serializable.js
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2016-03-07 16:14:16 +0100
committerJules Laplace <jules@okfoc.us>2016-03-07 16:14:16 +0100
commit3bd704dd83f55a038b1eac699ecdf1fa3bbf8123 (patch)
tree0c39b0649eeda9e45417570c0ef7b36aaa68663a /StoneIsland/www/js/lib/view/Serializable.js
parentf32930fac442c7948132844a9648879fbd62bab2 (diff)
fixing weirdness
Diffstat (limited to 'StoneIsland/www/js/lib/view/Serializable.js')
-rwxr-xr-xStoneIsland/www/js/lib/view/Serializable.js10
1 files changed, 7 insertions, 3 deletions
diff --git a/StoneIsland/www/js/lib/view/Serializable.js b/StoneIsland/www/js/lib/view/Serializable.js
index 98aa8ce3..8d25daf4 100755
--- a/StoneIsland/www/js/lib/view/Serializable.js
+++ b/StoneIsland/www/js/lib/view/Serializable.js
@@ -97,7 +97,8 @@ var SerializableView = View.extend({
},
show_errors: function(errors){
- console.log(errors)
+ console.log("showing errors")
+ console.log(errors)
var msgs = []
errors.forEach(function(e, i){
if (i > 0) { return }
@@ -146,17 +147,20 @@ var SerializableView = View.extend({
}.bind(this),
error: function(data){
app.curtain.hide("loading")
+ console.log("api error")
this.error(data)
}.bind(this),
})
},
success: function(data){
- console.log("SUCCESS", data)
+ console.log("SUCCESS")
+ console.log(data)
},
error: function(data){
- console.log("FAIL", data)
+ console.log("FAIL")
+ console.log(data)
},
})