diff options
| author | 8chan <admin@8chan.co> | 2015-03-11 02:58:03 -0700 |
|---|---|---|
| committer | czaks <marcin@6irc.net> | 2015-03-31 05:48:45 +0200 |
| commit | 0f1d506586c2553852cb88204a3e529abace6f78 (patch) | |
| tree | 2ff40f47864e63b87f079922a6382272bdcd7b49 /js | |
| parent | d3cc27ff5cf598ead9d0045077f69ec73bb470c6 (diff) | |
Change this message again
Conflicts:
js/ajax.js
Diffstat (limited to 'js')
| -rw-r--r-- | js/ajax.js | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -115,7 +115,10 @@ $(window).ready(function() { } }, error: function(xhr, status, er) { - alert(_('The server returned an error or truncated response -- your post was probably still submitted. If it wasn\'t, 8chan.co might be experiencing issues right now -- please try your post again later.')); + console.log(xhr); + alert(_('The server took too long to submit your post. Your post was probably still submitted. If it wasn\'t, we might be experiencing issues right now -- please try your post again later. Error information: ') + "<div><textarea>" + JSON.stringify(xhr) + "</textarea></div>"); + $(form).find('input[type="submit"]').val(submit_txt); + $(form).find('input[type="submit"]').removeAttr('disabled'); }, data: formData, cache: false, |
