mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-11 16:35:47 +01:00
closes #1603
This commit is contained in:
@@ -468,6 +468,14 @@ var socket,
|
||||
}
|
||||
|
||||
searchButton.off().on('click', function(e) {
|
||||
if (!config.isLoggedIn && !config.allowGuestSearching) {
|
||||
app.alert({
|
||||
message:'[[error:search-requires-login]]',
|
||||
timeout: 3000
|
||||
});
|
||||
ajaxify.go('login');
|
||||
return false;
|
||||
}
|
||||
e.stopPropagation();
|
||||
|
||||
searchFields.removeClass('hide').show();
|
||||
|
||||
Reference in New Issue
Block a user