Update content of files

This commit is contained in:
GitHub Action 2023-09-06 14:23:21 +00:00
parent 36ca3abe5a
commit 866add7e12
7 changed files with 32 additions and 12 deletions

View file

@ -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?65"></script>
<script src="/js/promote.js?66"></script>
<script src="/js/jquery-ui.min.js?1"></script>
<script src="/js/jquery-ex.js?15"></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":955,"apiUrl":"\/api?hash=telegram-crawler","unauth":true});</script>
<script>ajInit({"version":956,"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

@ -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?65"></script>
<script src="/js/promote.js?66"></script>
<script src="/js/jquery-ui.min.js?1"></script>
<script src="/js/jquery-ex.js?15"></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":955,"apiUrl":"\/api?hash=telegram-crawler","unauth":true});</script>
<script>ajInit({"version":956,"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

@ -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?65"></script>
<script src="/js/promote.js?66"></script>
<script src="/js/jquery-ui.min.js?1"></script>
<script src="/js/jquery-ex.js?15"></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":955,"apiUrl":"\/api?hash=telegram-crawler","unauth":true});</script>
<script>ajInit({"version":956,"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

@ -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?65"></script>
<script src="/js/promote.js?66"></script>
<script src="/js/jquery-ui.min.js?1"></script>
<script src="/js/jquery-ex.js?15"></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":955,"apiUrl":"\/api?hash=telegram-crawler","unauth":true});</script>
<script>ajInit({"version":956,"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

@ -249,14 +249,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?65"></script>
<script src="/js/promote.js?66"></script>
<script src="/js/jquery-ui.min.js?1"></script>
<script src="/js/jquery-ex.js?15"></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":955,"apiUrl":"\/api?hash=telegram-crawler","unauth":true});</script>
<script>ajInit({"version":956,"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

@ -492,6 +492,8 @@ var NewAd = {
state.targetTypeField.fieldEl().on('change.curPage', NewAd.onTargetTypeChange);
state.pictureCheckbox = state.$form.field('picture');
state.pictureCheckbox.on('change.curPage', NewAd.onPictureChange);
state.excludePoliticCheckbox = state.$form.field('exclude_politic');
state.excludePoliticCheckbox.on('change.curPage', NewAd.onExcludePoliticChange);
state.confirmedCheckbox = state.$form.field('confirmed');
state.confirmedCheckbox.on('change.curPage', NewAd.onConfirmedChange);
NewAd.updateAdPreview(state.$form, state.previewData);
@ -527,6 +529,7 @@ var NewAd = {
state.targetTypeField.fieldEl().off('.curPage');
state.confirmedCheckbox.off('.curPage');
state.pictureCheckbox.off('.curPage');
state.excludePoliticCheckbox.off('.curPage');
for (var i = 0; i < state.selectList.length; i++) {
var selectData = state.selectList[i];
if (selectData.location_search) {
@ -555,6 +558,10 @@ var NewAd = {
var $form = $(this.form);
NewAd.adPostCheck($form);
},
onExcludePoliticChange: function() {
NewAd.updateAdTargetOverview();
NewAd.saveDraftAuto(true);
},
onConfirmedChange: function() {
$('.create-new-ad-btn', Aj.ajContainer).prop('disabled', !$(this).prop('checked'));
},
@ -1183,6 +1190,9 @@ var NewAd = {
if (len.exclude_user_topics > 0) {
overview += '<div class="pr-form-info-block minus">' + l('WEB_AD_TARGET_USER_EXCLUDE_TOPICS', lang_params) + '</div>';
}
if (Aj.state.excludePoliticCheckbox.prop('checked')) {
overview += '<div class="pr-form-info-block minus">' + l('WEB_AD_TARGET_EXCLUDE_POLITIC') + '</div>';
}
if (len.exclude_audiences > 0) {
overview += '<div class="pr-form-info-block minus">' + l('WEB_AD_TARGET_EXCLUDE_AUDIENCES', lang_params) + '</div>';
}
@ -1215,6 +1225,9 @@ var NewAd = {
var vals = $form.field(selectData.field).data('value');
values.push(vals.join(';'));
}
if ($form.field('exclude_politic').prop('checked')) {
values.push('exclude_politic');
}
if ($form.field('exclude_outside').prop('checked')) {
values.push('exclude_outside');
}
@ -1292,6 +1305,9 @@ var NewAd = {
var values = $form.field(selectData.field).data('value');
params[selectData.field] = values.join(';');
}
if ($form.field('exclude_politic').prop('checked')) {
params.exclude_politic = 1;
}
if ($form.field('exclude_outside').prop('checked')) {
params.exclude_outside = 1;
}
@ -1364,6 +1380,9 @@ var NewAd = {
var values = $form.field(selectData.field).data('value');
params[selectData.field] = values.join(';');
}
if ($form.field('exclude_politic').prop('checked')) {
params.exclude_politic = 1;
}
if ($form.field('exclude_outside').prop('checked')) {
params.exclude_outside = 1;
}
@ -1396,6 +1415,7 @@ var NewAd = {
var selectData = Aj.state.selectList[i];
var values = $form.field(selectData.field).trigger('reset');
}
$form.field('exclude_politic').prop('checked', false);
$form.field('exclude_outside').prop('checked', false);
Aj.state.titleField.focusAndSelect();
NewAd.updateAdPreview(Aj.state.$form, false);

View file

@ -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?65"></script>
<script src="/js/promote.js?66"></script>
<script src="/js/jquery-ui.min.js?1"></script>
<script src="/js/jquery-ex.js?15"></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":955,"apiUrl":"\/api?hash=telegram-crawler","unauth":true});</script>
<script>ajInit({"version":956,"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();