Prevent dublicates in search results

pull/2464/head
Stefan 2015-01-18 13:56:30 +01:00
parent 6d6ddd7f9f
commit 4644073399
1 changed files with 1 additions and 0 deletions

View File

@ -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')