v1.18.x
psychobunny 10 years ago
parent a14e22d534
commit b96018b0f5

@ -123,8 +123,11 @@ define('forum/search', ['search', 'autocomplete'], function(searchModule, autoco
$('.search-result-text').each(function() {
var result = $(this);
var text = result.html().replace(regex, '<strong>$1</strong>');
result.html(text).find('img').addClass('img-responsive');
result.html(text).find('img').addClass('img-responsive').each(function() {
$(this).attr('src', $(this).attr('src').replace(/<strong>([\s\S]*?)<\/strong>/gi, '$1'));
});
});
} catch(e) {
return;

Loading…
Cancel
Save