0001-misc-fix-ajax-loading-of-empty-cell-9223.patch
combo/public/static/js/combo.public.js | ||
---|---|---|
4 | 4 |
async: true, |
5 | 5 |
dataType: 'html', |
6 | 6 |
crossDomain: true, |
7 |
success: function(data) { $(elem).replaceWith(data); }, |
|
7 |
success: function(data) { |
|
8 |
if (data == '') { |
|
9 |
$(elem).remove(); |
|
10 |
} else { |
|
11 |
$(elem).replaceWith(data); |
|
12 |
} |
|
13 |
}, |
|
8 | 14 |
error: function(error) { |
9 | 15 |
$(elem).addClass('error-loading'); |
10 | 16 |
window.console && console.log(':(', error); |
11 |
- |