only add divider if there are results

v1.18.x
psychobunny 11 years ago
parent 027e8eb54c
commit 13dd686521

@ -46,7 +46,9 @@ define('forum/admin/footer', ['forum/admin/settings'], function(Settings) {
} }
} }
menuItems.append('<li role="presentation" class="divider"></li>'); if (menuItems.html() !== '') {
menuItems.append('<li role="presentation" class="divider"></li>');
}
} }
menuItems.append('<li role="presentation"><a role="menuitem" href="' + RELATIVE_PATH + '/search/' + $input.val() + '">Search the forum for "' + $input.val() + '"</a></li>'); menuItems.append('<li role="presentation"><a role="menuitem" href="' + RELATIVE_PATH + '/search/' + $input.val() + '">Search the forum for "' + $input.val() + '"</a></li>');

Loading…
Cancel
Save