better reporting of 500 ajax errors, issue 832, thanks Paolo Velleri
This commit is contained in:
@@ -50,6 +50,13 @@ function web2py_event_handlers() {
|
||||
window.location = redirect;
|
||||
};
|
||||
});
|
||||
doc.ajaxError(function(e, xhr, settings, exception) {
|
||||
doc.off('click', '.flash')
|
||||
switch(xhr.status){
|
||||
case 500:
|
||||
$('.flash').html(ajax_error_500).slideDown();
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
jQuery(function() {
|
||||
|
||||
Reference in New Issue
Block a user