diff options
Diffstat (limited to 'web/static/js')
-rw-r--r-- | web/static/js/common.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/web/static/js/common.js b/web/static/js/common.js index c987242..9d1451f 100644 --- a/web/static/js/common.js +++ b/web/static/js/common.js @@ -10,6 +10,13 @@ new Request.JSON({ 'url': ykill.api_host + path, 'onSuccess': cb, + 'onFailure': function(xhr) { + $('wrapper').empty().grab(new Element('div', { + 'class': 'error', + 'html': 'as you pass through the wormhole you realize that it collapses behind you.' + + '<br>have you become trapped?' + })); + }, }).get(); }, |