14 lines
No EOL
317 B
JavaScript
14 lines
No EOL
317 B
JavaScript
$(function() {
|
|
$(document).ajaxError(function(event, response, ajaxSettings, thrownError) {
|
|
switch (response.status) {
|
|
case 500:
|
|
default:
|
|
swal({
|
|
title: 'Whoops!',
|
|
text: 'We encountered a problem. Please contact technical support.',
|
|
type: 'error'
|
|
});
|
|
break;
|
|
}
|
|
});
|
|
}); |