Truncate AJAX error messages in notification

This commit is contained in:
David Baumgold
2013-05-23 17:05:22 -04:00
parent 9d59a1313c
commit e0eec89e09
4 changed files with 127 additions and 5 deletions

View File

@@ -18,7 +18,7 @@ $ ->
$(document).ajaxError (event, jqXHR, ajaxSettings, thrownError) ->
if ajaxSettings.notifyOnError is false
return
return
if jqXHR.responseText
try
message = JSON.parse(jqXHR.responseText).error