Update content of files

This commit is contained in:
GitHub Action 2022-11-11 13:54:43 +00:00
parent 9b0bf8e55a
commit 73ed7e7ffd
2 changed files with 9 additions and 4 deletions

View file

@ -38,9 +38,9 @@
<script src="/js/main-aj.js?65"></script>
<script src="/js/jquery-ex.js?14"></script>
<script src="/js/qr-code-styling.js?1"></script>
<script src="/js/auction.js?34"></script>
<script src="/js/auction.js?35"></script>
<script>ajInit({"version":385,"apiUrl":"\/api?hash=telegram-crawler","unauth":true});</script>
<script>ajInit({"version":386,"apiUrl":"\/api?hash=telegram-crawler","unauth":true});</script>
<script id="aj_script">Main.init();
</script>
<script>Aj.pageLoaded();</script>

View file

@ -368,6 +368,9 @@ var Main = {
}
},
eMainSearchInput: function(e) {
if (!Aj.state.quickSearch) {
return;
}
clearTimeout(Aj.state.searchTimeout);
var cached_results = Main.getSearchCachedResult();
if (cached_results) {
@ -424,8 +427,10 @@ var Main = {
filter: filter,
sort: sort
}, function(result) {
cache[cache_key] = result;
Main.updateResults(result);
if (result.ok) {
cache[cache_key] = result;
Main.updateResults(result);
}
Aj.state.$mainSearchField.removeClass('loading');
});
}