mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-24 13:20:56 +01:00
fixed acp search
This commit is contained in:
@@ -50,7 +50,7 @@ define(function() {
|
||||
return false;
|
||||
});
|
||||
|
||||
$('.sidebar-nav a').each(function(idx, link) {
|
||||
$('#main-menu a').each(function(idx, link) {
|
||||
routes.push($(link).attr('href'));
|
||||
});
|
||||
|
||||
@@ -95,15 +95,14 @@ define(function() {
|
||||
}
|
||||
}
|
||||
|
||||
if (menuItems.html() !== '') {
|
||||
menuItems.append('<li role="presentation" class="divider"></li>');
|
||||
} else {
|
||||
if (menuItems.html() === '') {
|
||||
menuItems.append('<li role="presentation"><a role="menuitem" href="#">No results...</a></li>');
|
||||
}
|
||||
}
|
||||
|
||||
if (value.length > 0) {
|
||||
if (config.searchEnabled) {
|
||||
menuItems.append('<li role="presentation" class="divider"></li>');
|
||||
menuItems.append('<li role="presentation"><a role="menuitem" target="_top" href="' + RELATIVE_PATH + '/search/' + value + '">Search the forum for <strong>' + value + '</strong></a></li>');
|
||||
} else if (value.length < 3) {
|
||||
menuItems.append('<li role="presentation"><a role="menuitem" href="#">Type more to see results...</a></li>');
|
||||
|
||||
Reference in New Issue
Block a user