mirror of
https://github.com/MarshalX/telegram-crawler.git
synced 2024-12-29 15:59:13 +01:00
Update content of files
This commit is contained in:
parent
9b0bf8e55a
commit
73ed7e7ffd
2 changed files with 9 additions and 4 deletions
|
@ -38,9 +38,9 @@
|
||||||
<script src="/js/main-aj.js?65"></script>
|
<script src="/js/main-aj.js?65"></script>
|
||||||
<script src="/js/jquery-ex.js?14"></script>
|
<script src="/js/jquery-ex.js?14"></script>
|
||||||
<script src="/js/qr-code-styling.js?1"></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 id="aj_script">Main.init();
|
||||||
</script>
|
</script>
|
||||||
<script>Aj.pageLoaded();</script>
|
<script>Aj.pageLoaded();</script>
|
||||||
|
|
|
@ -368,6 +368,9 @@ var Main = {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
eMainSearchInput: function(e) {
|
eMainSearchInput: function(e) {
|
||||||
|
if (!Aj.state.quickSearch) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
clearTimeout(Aj.state.searchTimeout);
|
clearTimeout(Aj.state.searchTimeout);
|
||||||
var cached_results = Main.getSearchCachedResult();
|
var cached_results = Main.getSearchCachedResult();
|
||||||
if (cached_results) {
|
if (cached_results) {
|
||||||
|
@ -424,8 +427,10 @@ var Main = {
|
||||||
filter: filter,
|
filter: filter,
|
||||||
sort: sort
|
sort: sort
|
||||||
}, function(result) {
|
}, function(result) {
|
||||||
cache[cache_key] = result;
|
if (result.ok) {
|
||||||
Main.updateResults(result);
|
cache[cache_key] = result;
|
||||||
|
Main.updateResults(result);
|
||||||
|
}
|
||||||
Aj.state.$mainSearchField.removeClass('loading');
|
Aj.state.$mainSearchField.removeClass('loading');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue