Update content of files

This commit is contained in:
GitHub Action 2023-03-29 09:48:45 +00:00
parent 521dfccbe7
commit bf9991056c
2 changed files with 7 additions and 2 deletions

View file

@ -38,10 +38,10 @@
<script src="/js/main-aj.js?67"></script>
<script src="/js/jquery-ex.js?14"></script>
<script src="/js/qr-code-styling.js?1"></script>
<script src="/js/auction.js?57"></script>
<script src="/js/auction.js?58"></script>
<script src="/js/tgsticker.js?30"></script>
<script>ajInit({"version":468,"apiUrl":"\/api?hash=telegram-crawler","unauth":true});</script>
<script>ajInit({"version":469,"apiUrl":"\/api?hash=telegram-crawler","unauth":true});</script>
<script id="aj_script">Aj._useScrollHack=true;
Main.init();
</script>

View file

@ -1532,6 +1532,7 @@ var Premium = {
state.$premiumSearchForm = $('.js-premium-form');
state.$premiumSearchForm.on('submit', Premium.eSearchSubmit);
state.$premiumSearchForm.field('query').on('input', Premium.eSearchInput);
state.$premiumSearchForm.field('query').on('change', Premium.eSearchChange);
$('.js-form-clear', state.$premiumSearchForm).on('click', Premium.eSearchClear);
state.$premiumSearchForm.on('change', '.js-premium-options input.radio', Premium.eRadioChanged);
state.$giftPremiumForm.on('change', 'input.checkbox', Premium.eCheckboxChanged);
@ -1554,6 +1555,7 @@ var Premium = {
Main.destroyForm(state.$giftPremiumForm);
state.$premiumSearchForm.off('submit', Premium.eSearchSubmit);
state.$premiumSearchForm.field('query').off('input', Premium.eSearchInput);
state.$premiumSearchForm.field('query').on('change', Premium.eSearchChange);
$('.js-form-clear', state.$premiumSearchForm).off('click', Premium.eSearchClear);
state.$premiumSearchForm.off('change', '.js-premium-options input.radio', Premium.eRadioChanged);
state.$giftPremiumForm.off('change', 'input.checkbox', Premium.eCheckboxChanged);
@ -1609,6 +1611,9 @@ var Premium = {
$('.js-search-field-error').html('');
$field.removeClass('error');
},
eSearchChange: function(e) {
Premium.searchSubmit();
},
eSearchClear: function(e) {
var $form = Aj.state.$premiumSearchForm;
var $field = Aj.state.$premiumSearchField;