mirror of
https://github.com/MarshalX/telegram-crawler.git
synced 2024-12-29 07:52:37 +01:00
Update content of files
This commit is contained in:
parent
058bd6c605
commit
8d88b549f0
2 changed files with 22 additions and 2 deletions
|
@ -38,9 +38,9 @@
|
|||
<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?49"></script>
|
||||
<script src="/js/auction.js?50"></script>
|
||||
|
||||
<script>ajInit({"version":416,"apiUrl":"\/api?hash=telegram-crawler","unauth":true});</script>
|
||||
<script>ajInit({"version":417,"apiUrl":"\/api?hash=telegram-crawler","unauth":true});</script>
|
||||
<script id="aj_script">Aj._useScrollHack=true;
|
||||
Main.init();
|
||||
</script>
|
||||
|
|
|
@ -15,6 +15,7 @@ var Main = {
|
|||
$(cont).on('click.curPage', '.js-btn-tonkeeper', Main.eTonkeeperOpen);
|
||||
$(cont).on('click.curPage', '.js-auction-unavail', Main.eAuctionUnavailable);
|
||||
$(cont).on('click.curPage', '.js-howitworks', Main.eHowitworks);
|
||||
$(cont).on('click.curPage', '.js-howofferworks', Main.eHowofferworks);
|
||||
$(cont).on('click.curPage', '.logout-link', Login.logOut);
|
||||
$(cont).on('click.curPage', '.ton-logout-link', Login.tonLogOut);
|
||||
$(cont).on('click.curPage', '.js-copy-code', Main.copyCode);
|
||||
|
@ -22,6 +23,7 @@ var Main = {
|
|||
state.$headerMenu = $('.js-header-menu');
|
||||
state.$unavailPopup = $('.js-unavailable-popup');
|
||||
state.$howitworksPopup = $('.js-howitworks-popup');
|
||||
state.$howofferworksPopup = $('.js-howofferworks-popup');
|
||||
state.$mainSearchField = $('.js-main-search-field');
|
||||
state.$mainSearchForm = $('.js-main-search-form');
|
||||
state.$mainSearchForm.on('submit', Main.eMainSearchSubmit);
|
||||
|
@ -266,6 +268,24 @@ var Main = {
|
|||
}
|
||||
});
|
||||
},
|
||||
eHowofferworks: function(e) {
|
||||
e.preventDefault();
|
||||
e.stopImmediatePropagation();
|
||||
var onEnterPress = function(e) {
|
||||
if (e.keyCode == Keys.RETURN) {
|
||||
e.stopImmediatePropagation();
|
||||
closePopup(Aj.state.$howofferworksPopup);
|
||||
}
|
||||
};
|
||||
openPopup(Aj.state.$howofferworksPopup, {
|
||||
onOpen: function() {
|
||||
$(document).on('keydown', onEnterPress);
|
||||
},
|
||||
onClose: function() {
|
||||
$(document).off('keydown', onEnterPress);
|
||||
}
|
||||
});
|
||||
},
|
||||
amountFieldValue: function($form, field) {
|
||||
var $fieldEl = field ? $form.field(field) : $form;
|
||||
var minValue = $fieldEl.attr('data-min') || null;
|
||||
|
|
Loading…
Reference in a new issue