mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-07-08 13:51:49 +02:00
closes #3187
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user