misc: add a class to cells that failed to load (#9213)
This commit is contained in:
parent
a478ee212c
commit
1c46784055
|
@ -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);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue