Skip to content

Instantly share code, notes, and snippets.

@wookets
wookets / gist:1776824
Created February 9, 2012 02:40
Global ajax error catcher in coffeescript
# handle all global ajax errors (we get a response that server is down or something)
$(document).ajaxError (e, xhr, settings, exception) ->
root.showMessage("error", "Service currently unavailable.")