|
|
@ -123,8 +123,11 @@ define('forum/search', ['search', 'autocomplete'], function(searchModule, autoco
|
|
|
|
|
|
|
|
|
|
|
|
$('.search-result-text').each(function() {
|
|
|
|
$('.search-result-text').each(function() {
|
|
|
|
var result = $(this);
|
|
|
|
var result = $(this);
|
|
|
|
|
|
|
|
|
|
|
|
var text = result.html().replace(regex, '<strong>$1</strong>');
|
|
|
|
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) {
|
|
|
|
} catch(e) {
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|