mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-08-31 03:18:03 +02:00
closes #4952
This commit is contained in:
@@ -73,6 +73,14 @@ define('search', ['navigator', 'translator'], function(nav, translator) {
|
||||
return decodeURIComponent($.param(query));
|
||||
}
|
||||
|
||||
Search.getSearchPreferences = function() {
|
||||
try {
|
||||
return JSON.parse(localStorage.getItem('search-preferences'));
|
||||
} catch(e) {
|
||||
return {};
|
||||
}
|
||||
};
|
||||
|
||||
Search.queryTopic = function(tid, term, callback) {
|
||||
socket.emit('topics.search', {
|
||||
tid: tid,
|
||||
|
||||
Reference in New Issue
Block a user