diff --git a/Resources/Public/JavaScript/searchable.js b/Resources/Public/JavaScript/searchable.js index d5e55aed..b93b57ef 100644 --- a/Resources/Public/JavaScript/searchable.js +++ b/Resources/Public/JavaScript/searchable.js @@ -108,7 +108,8 @@ } - + lastTerm = searchTerm; + lastPage = currentPage; timer = setTimeout(function(){callAjaxSearch()}, settings.delay); } @@ -148,8 +149,6 @@ }, data, this); } - lastTerm = searchTerm; - lastPage = currentPage; result = data; populate(); updateUI();