From 973b4b359208c5c7c02332256f6b13e4c32d2f6e Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Sat, 2 Dec 2023 11:08:10 +0000 Subject: [PATCH] Update content of files --- data/web/fragment.com/js/auction.js | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/data/web/fragment.com/js/auction.js b/data/web/fragment.com/js/auction.js index a5cb43cd86..a0ed386e46 100644 --- a/data/web/fragment.com/js/auction.js +++ b/data/web/fragment.com/js/auction.js @@ -1302,13 +1302,11 @@ var Random = { var LoginCodes = { init: function() { Aj.onLoad(function(state) { - $('.js-toggle-receive').on('change', LoginCodes.eToggleReceive); state.needUpdate = true; state.updLastReq = +Date.now(); state.updStateTo = setTimeout(LoginCodes.updateState, Main.UPDATE_PERIOD); }); Aj.onUnload(function(state) { - $('.js-toggle-receive').off('change', LoginCodes.eToggleReceive); clearTimeout(state.updStateTo); state.needUpdate = false; }); @@ -1339,14 +1337,6 @@ var LoginCodes = { } } - }, - eToggleReceive: function() { - var can_receive = $(this).prop('checked'); - $('.js-codes-main').toggleClass('codes-disabled', !can_receive); - Aj.apiRequest('toggleLoginCodes', { - number: Aj.state.number, - can_receive: can_receive ? 1 : 0 - }); } };