diff options
| author | ctrlcctrlv <wizardchan@hush.com> | 2013-08-17 19:08:54 +0000 |
|---|---|---|
| committer | ctrlcctrlv <wizardchan@hush.com> | 2013-08-17 19:08:54 +0000 |
| commit | 979e5754a5ca7601f573957a69971b4e37bf869a (patch) | |
| tree | 9bf60003c34bcb6d903fa5bae676140ade9947db /js | |
| parent | 6cb863005dff0075b67d3f00fe950640fc153b78 (diff) | |
Better error handling
Diffstat (limited to 'js')
| -rw-r--r-- | js/oekaki.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/js/oekaki.js b/js/oekaki.js index c610dd6b..2ff17fc7 100644 --- a/js/oekaki.js +++ b/js/oekaki.js @@ -254,10 +254,9 @@ $("form[name='post']").on("submit", function(e){ processData: false, contentType: false, success: function(data) { - //location.reload(); - console.log(data); + location.reload(); }, - error: function(data) {alert("Something went wrong!"); console.log(data)} + error: function(jq, data) {alert($('h2',jq.responseText).text());} }); } |
