Prevent dublicates in search results
parent
6d6ddd7f9f
commit
4644073399
|
@ -181,6 +181,7 @@ $(document).ready(function () {
|
|||
|
||||
socket.on('results:search', function (data) {
|
||||
if(!data.results.length) search.end = true;
|
||||
if(data.query.offset == 0) search.results = [];
|
||||
search.messages.hide('nothing-found')
|
||||
search.messages.hide('fetching')
|
||||
$("#search-query").removeAttr('disabled')
|
||||
|
|
Loading…
Reference in New Issue