misc: add a class to cells that failed to load (#9213)

This commit is contained in:
Frédéric Péters 2015-12-05 17:16:36 +01:00
parent a478ee212c
commit 1c46784055
1 changed files with 4 additions and 1 deletions

View File

@ -5,7 +5,10 @@ function combo_load_cell(elem, url) {
dataType: 'html',
crossDomain: true,
success: function(data) { $(elem).replaceWith(data); },
error: function(error) { window.console && console.log(':(', error); }
error: function(error) {
$(elem).addClass('error-loading');
window.console && console.log(':(', error);
}
});
}