This commit is contained in:
barisusakli
2016-08-17 12:40:14 +03:00
parent 4af631666a
commit d43c19c173
3 changed files with 13 additions and 11 deletions

View File

@@ -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,