Update content of files

This commit is contained in:
GitHub Action 2024-01-29 09:58:36 +00:00
parent bf607e10fa
commit e76c406fb3
7 changed files with 71 additions and 18 deletions

View file

@ -23,7 +23,7 @@
<link href="//telegram.org/css/bootstrap-extra.css?2" rel="stylesheet">
<link href="/css/telegram.css?236" rel="stylesheet">
<link href="/css/widget-frame.css?66" rel="stylesheet">
<link href="/css/promote.css?79" rel="stylesheet">
<link href="/css/promote.css?80" rel="stylesheet">
<link href="/css/jquery-ui.min.css?1" rel="stylesheet">
<link href="/css/tchart.min.css?10" rel="stylesheet">
@ -103,14 +103,14 @@
<script src="//telegram.org/js/main-aj.js?68"></script>
<script src="/js/main.js?47"></script>
<script src="/js/widget-frame.js?62"></script>
<script src="/js/promote.js?74"></script>
<script src="/js/promote.js?75"></script>
<script src="/js/jquery-ui.min.js?1"></script>
<script src="/js/jquery-ex.js?17"></script>
<script src="/js/tchart.min.js?18"></script>
<script src="/js/health.js?18"></script>
<script src="/js/tgsticker.js?31"></script>
<script>ajInit({"version":970,"apiUrl":"\/api?hash=telegram-crawler","unauth":true});</script>
<script>ajInit({"version":972,"apiUrl":"\/api?hash=telegram-crawler","unauth":true});</script>
<script id="aj_script">l.add({"WEB_AB_WARNING_HEADER":"Turn off ad blocker","WEB_POPUP_CLOSE_BTN":"Close","WEB_AB_WARNING_TEXT":"You appear to be using an ad blocker that may prevent pages on the Telegram Ad Platform from working as expected.<br\/><br\/>Please turn off your ad blocker or add <a href=\"http:\/\/promote.telegram.org\/\">promote.telegram.org<\/a> as an exception to manage your promoted messages."});
window.enableInlineVideo&&$('video').each(function(){enableInlineVideo(this)});
Ads.init();

View file

@ -23,7 +23,7 @@
<link href="//telegram.org/css/bootstrap-extra.css?2" rel="stylesheet">
<link href="/css/telegram.css?236" rel="stylesheet">
<link href="/css/widget-frame.css?66" rel="stylesheet">
<link href="/css/promote.css?79" rel="stylesheet">
<link href="/css/promote.css?80" rel="stylesheet">
<link href="/css/jquery-ui.min.css?1" rel="stylesheet">
<link href="/css/tchart.min.css?10" rel="stylesheet">
@ -103,14 +103,14 @@
<script src="//telegram.org/js/main-aj.js?68"></script>
<script src="/js/main.js?47"></script>
<script src="/js/widget-frame.js?62"></script>
<script src="/js/promote.js?74"></script>
<script src="/js/promote.js?75"></script>
<script src="/js/jquery-ui.min.js?1"></script>
<script src="/js/jquery-ex.js?17"></script>
<script src="/js/tchart.min.js?18"></script>
<script src="/js/health.js?18"></script>
<script src="/js/tgsticker.js?31"></script>
<script>ajInit({"version":970,"apiUrl":"\/api?hash=telegram-crawler","unauth":true});</script>
<script>ajInit({"version":972,"apiUrl":"\/api?hash=telegram-crawler","unauth":true});</script>
<script id="aj_script">l.add({"WEB_AB_WARNING_HEADER":"Turn off ad blocker","WEB_POPUP_CLOSE_BTN":"Close","WEB_AB_WARNING_TEXT":"You appear to be using an ad blocker that may prevent pages on the Telegram Ad Platform from working as expected.<br\/><br\/>Please turn off your ad blocker or add <a href=\"http:\/\/promote.telegram.org\/\">promote.telegram.org<\/a> as an exception to manage your promoted messages."});
openPopup('#login-popup-container');
window.enableInlineVideo&&$('video').each(function(){enableInlineVideo(this)});

View file

@ -23,7 +23,7 @@
<link href="//telegram.org/css/bootstrap-extra.css?2" rel="stylesheet">
<link href="/css/telegram.css?236" rel="stylesheet">
<link href="/css/widget-frame.css?66" rel="stylesheet">
<link href="/css/promote.css?79" rel="stylesheet">
<link href="/css/promote.css?80" rel="stylesheet">
<link href="/css/jquery-ui.min.css?1" rel="stylesheet">
<link href="/css/tchart.min.css?10" rel="stylesheet">
@ -103,14 +103,14 @@
<script src="//telegram.org/js/main-aj.js?68"></script>
<script src="/js/main.js?47"></script>
<script src="/js/widget-frame.js?62"></script>
<script src="/js/promote.js?74"></script>
<script src="/js/promote.js?75"></script>
<script src="/js/jquery-ui.min.js?1"></script>
<script src="/js/jquery-ex.js?17"></script>
<script src="/js/tchart.min.js?18"></script>
<script src="/js/health.js?18"></script>
<script src="/js/tgsticker.js?31"></script>
<script>ajInit({"version":970,"apiUrl":"\/api?hash=telegram-crawler","unauth":true});</script>
<script>ajInit({"version":972,"apiUrl":"\/api?hash=telegram-crawler","unauth":true});</script>
<script id="aj_script">l.add({"WEB_AB_WARNING_HEADER":"Turn off ad blocker","WEB_POPUP_CLOSE_BTN":"Close","WEB_AB_WARNING_TEXT":"You appear to be using an ad blocker that may prevent pages on the Telegram Ad Platform from working as expected.<br\/><br\/>Please turn off your ad blocker or add <a href=\"http:\/\/promote.telegram.org\/\">promote.telegram.org<\/a> as an exception to manage your promoted messages."});
window.enableInlineVideo&&$('video').each(function(){enableInlineVideo(this)});
Ads.init();

View file

@ -24,7 +24,7 @@
<link href="//telegram.org/css/bootstrap-extra.css?2" rel="stylesheet">
<link href="/css/telegram.css?236" rel="stylesheet">
<link href="/css/widget-frame.css?66" rel="stylesheet">
<link href="/css/promote.css?79" rel="stylesheet">
<link href="/css/promote.css?80" rel="stylesheet">
<link href="/css/jquery-ui.min.css?1" rel="stylesheet">
<link href="/css/tchart.min.css?10" rel="stylesheet">
@ -224,14 +224,14 @@
<script src="//telegram.org/js/main-aj.js?68"></script>
<script src="/js/main.js?47"></script>
<script src="/js/widget-frame.js?62"></script>
<script src="/js/promote.js?74"></script>
<script src="/js/promote.js?75"></script>
<script src="/js/jquery-ui.min.js?1"></script>
<script src="/js/jquery-ex.js?17"></script>
<script src="/js/tchart.min.js?18"></script>
<script src="/js/health.js?18"></script>
<script src="/js/tgsticker.js?31"></script>
<script>ajInit({"version":970,"apiUrl":"\/api?hash=telegram-crawler","unauth":true});</script>
<script>ajInit({"version":972,"apiUrl":"\/api?hash=telegram-crawler","unauth":true});</script>
<script id="aj_script">l.add({"WEB_AB_WARNING_HEADER":"Turn off ad blocker","WEB_POPUP_CLOSE_BTN":"Close","WEB_AB_WARNING_TEXT":"You appear to be using an ad blocker that may prevent pages on the Telegram Ad Platform from working as expected.<br\/><br\/>Please turn off your ad blocker or add <a href=\"http:\/\/promote.telegram.org\/\">promote.telegram.org<\/a> as an exception to manage your promoted messages."});
window.enableInlineVideo&&$('video').each(function(){enableInlineVideo(this)});
Ads.init();

View file

@ -23,7 +23,7 @@
<link href="//telegram.org/css/bootstrap-extra.css?2" rel="stylesheet">
<link href="/css/telegram.css?236" rel="stylesheet">
<link href="/css/widget-frame.css?66" rel="stylesheet">
<link href="/css/promote.css?79" rel="stylesheet">
<link href="/css/promote.css?80" rel="stylesheet">
<link href="/css/jquery-ui.min.css?1" rel="stylesheet">
<link href="/css/tchart.min.css?10" rel="stylesheet">
@ -250,14 +250,14 @@
<script src="//telegram.org/js/main-aj.js?68"></script>
<script src="/js/main.js?47"></script>
<script src="/js/widget-frame.js?62"></script>
<script src="/js/promote.js?74"></script>
<script src="/js/promote.js?75"></script>
<script src="/js/jquery-ui.min.js?1"></script>
<script src="/js/jquery-ex.js?17"></script>
<script src="/js/tchart.min.js?18"></script>
<script src="/js/health.js?18"></script>
<script src="/js/tgsticker.js?31"></script>
<script>ajInit({"version":970,"apiUrl":"\/api?hash=telegram-crawler","unauth":true});</script>
<script>ajInit({"version":972,"apiUrl":"\/api?hash=telegram-crawler","unauth":true});</script>
<script id="aj_script">l.add({"WEB_AB_WARNING_HEADER":"Turn off ad blocker","WEB_POPUP_CLOSE_BTN":"Close","WEB_AB_WARNING_TEXT":"You appear to be using an ad blocker that may prevent pages on the Telegram Ad Platform from working as expected.<br\/><br\/>Please turn off your ad blocker or add <a href=\"http:\/\/promote.telegram.org\/\">promote.telegram.org<\/a> as an exception to manage your promoted messages."});
window.initDevPageNav&&initDevPageNav();
window.enableInlineVideo&&$('video').each(function(){enableInlineVideo(this)});

View file

@ -3578,6 +3578,7 @@ var TransferFunds = {
renderSelectedItem: function(val, item) {
return '<div class="selected-item' + (item.photo ? ' has-photo' : '') + '" data-val="' + cleanHTML(val.toString()) + '">' + (item.photo ? '<div class="selected-item-photo">' + item.photo + '</div>' : '') + '<span class="close"></span><div class="label">' + item.name + '</div></div>';
},
onEnter: TransferFunds.onAccountSearch,
onChange: TransferFunds.onAccountChange
});
});
@ -3595,6 +3596,58 @@ var TransferFunds = {
TransferFunds.onAmountChange();
Aj.state.$form.field(Aj.state.curAmountField).focusAndSelectAll();
},
onAccountSearch: function(field, value) {
var $fieldEl = Aj.state.$form.field(field);
var $formGroup = $fieldEl.fieldEl().parents('.form-group');
var prev_value = $fieldEl.data('prevval');
if (prev_value && prev_value == value) {
return false;
}
var owner_id = Aj.state.ownerId;
$fieldEl.data('prevval', value);
Ads.hideFieldError($fieldEl);
if (!value) {
return false;
}
$formGroup.addClass('field-loading');
Aj.apiRequest('searchAccountForTransfer', {
owner_id: owner_id,
query: value
}, function(result) {
$formGroup.removeClass('field-loading');
if (result.error) {
Ads.showFieldError($fieldEl, result.error);
return false;
}
if (result.account) {
$fieldEl.trigger('selectval', [result.account, true]);
$fieldEl.data('prevval', '');
}
else if (result.confirm_text) {
showConfirm(result.confirm_text, function() {
TransferFunds.linkAccount($fieldEl, owner_id, result.link_owner_id);
}, result.confirm_btn);
}
});
},
linkAccount: function($fieldEl, owner_id, link_owner_id) {
Aj.apiRequest('linkAccount', {
owner_id: owner_id,
link_owner_id: link_owner_id
}, function(result) {
if (result.error) {
Ads.showFieldError($fieldEl, result.error);
return false;
}
if (result.ok) {
showAlert(result.ok);
}
if (result.account) {
$fieldEl.trigger('selectval', [result.account, true]);
$fieldEl.data('prevval', '');
}
});
},
onAccountChange: function(field, value, valueFull) {
if (valueFull.budget) {
$('.js-sel_account_budget', Aj.state.$form).removeClass('disabled').html(valueFull.budget);

View file

@ -24,7 +24,7 @@
<link href="//telegram.org/css/bootstrap-extra.css?2" rel="stylesheet">
<link href="/css/telegram.css?236" rel="stylesheet">
<link href="/css/widget-frame.css?66" rel="stylesheet">
<link href="/css/promote.css?79" rel="stylesheet">
<link href="/css/promote.css?80" rel="stylesheet">
<link href="/css/jquery-ui.min.css?1" rel="stylesheet">
<link href="/css/tchart.min.css?10" rel="stylesheet">
@ -157,14 +157,14 @@
<script src="//telegram.org/js/main-aj.js?68"></script>
<script src="/js/main.js?47"></script>
<script src="/js/widget-frame.js?62"></script>
<script src="/js/promote.js?74"></script>
<script src="/js/promote.js?75"></script>
<script src="/js/jquery-ui.min.js?1"></script>
<script src="/js/jquery-ex.js?17"></script>
<script src="/js/tchart.min.js?18"></script>
<script src="/js/health.js?18"></script>
<script src="/js/tgsticker.js?31"></script>
<script>ajInit({"version":970,"apiUrl":"\/api?hash=telegram-crawler","unauth":true});</script>
<script>ajInit({"version":972,"apiUrl":"\/api?hash=telegram-crawler","unauth":true});</script>
<script id="aj_script">l.add({"WEB_AB_WARNING_HEADER":"Turn off ad blocker","WEB_POPUP_CLOSE_BTN":"Close","WEB_AB_WARNING_TEXT":"You appear to be using an ad blocker that may prevent pages on the Telegram Ad Platform from working as expected.<br\/><br\/>Please turn off your ad blocker or add <a href=\"http:\/\/promote.telegram.org\/\">promote.telegram.org<\/a> as an exception to manage your promoted messages."});
window.enableInlineVideo&&$('video').each(function(){enableInlineVideo(this)});
Ads.init();