mirror of
https://github.com/MarshalX/telegram-crawler.git
synced 2024-11-28 19:23:11 +01:00
Update content of files
This commit is contained in:
parent
41194f6f46
commit
20184aca2e
3 changed files with 14 additions and 585 deletions
|
@ -39,23 +39,11 @@
|
|||
<div class="container clearfix">
|
||||
<div class="dev_page">
|
||||
<div id="dev_page_content_wrap" class=" ">
|
||||
<div class="dev_page_bread_crumbs"><ul class="breadcrumb clearfix"><li><a href="/api" >API</a></li><i class="icon icon-breadcrumb-divider"></i><li><a href="/schema" >TL-schema</a></li><i class="icon icon-breadcrumb-divider"></i><li><a href="/constructor/updates" >Updates</a></li></ul></div>
|
||||
<div class="dev_page_bread_crumbs"><ul class="breadcrumb clearfix"><li><a href="/api" >API</a></li><i class="icon icon-breadcrumb-divider"></i><li><a href="/schema" >TL-schema</a></li><i class="icon icon-breadcrumb-divider"></i><li><a href="/constructor/Updates" >Updates</a></li></ul></div>
|
||||
<h1 id="dev_page_title">Updates</h1>
|
||||
|
||||
<div id="dev_page_content"><p>Full constructor of updates</p>
|
||||
<p><div class="clearfix">
|
||||
<ul class="dev_layer_select slightly-pull-right nav nav-pills">
|
||||
<li class="dropdown">
|
||||
<a class="dropdown-toggle" onclick="return dropdownClick(this, event)" href="#">Layer 164 <b class="caret"></b></a>
|
||||
<ul class="dropdown-menu">
|
||||
<li><a href="?layer=1">1 – Base layer</a></li><li><a href="?layer=2">2 – New userpic notifications</a></li><li><a href="?layer=3">3 – Send message can trigger link change</a></li><li><a href="?layer=4">4 – Check-in chats</a></li><li><a href="?layer=5">5 – Localized SMS, localized notifications</a></li><li><a href="?layer=6">6 – Foursquare integration</a></li><li><a href="?layer=7">7 – Added wallPaperSolid</a></li><li><a href="?layer=8">8 – Added end-to-end encryption</a></li><li><a href="?layer=9">9 – Improved big files upload perfomance</a></li><li><a href="?layer=10">10 – Improved chat participants updates</a></li><li><a href="?layer=11">11 – Improved secret chats</a></li><li><a href="?layer=12">12 – New dynamic support</a></li><li><a href="?layer=13">13 – Audio, video MIME; contacts import retry; new secret actions</a></li><li><a href="?layer=14">14 – Notify settings sync, blacklist sync</a></li><li><a href="?layer=15">15 – Modified getHistory offset behaviour</a></li><li><a href="?layer=16">16 – Split sendCode into 2 parts</a></li><li><a href="?layer=17">17 – Added custom typing, introduced message flags</a></li><li><a href="?layer=18">18 – Added usernames</a></li><li><a href="?layer=23">23 – Stickers for secret chats</a></li><li><a href="?layer=105">105 – Scheduled messages, Cloud themes</a></li><li><a href="?layer=108">108 – Login with QR code</a></li><li><a href="?layer=109">109 – Polls v2</a></li><li><a href="?layer=110">110 – People Nearby 2.0, Bank card entity</a></li><li><a href="?layer=111">111 – Folders, Broadcast Stats</a></li><li><a href="?layer=112">112 – Old featured stickers, generic dice, poll timer, poll solution</a></li><li><a href="?layer=113">113 – PSA</a></li><li><a href="?layer=114">114 – Video thumbs for GIFs</a></li><li><a href="?layer=115">115 – Peek Channel Invite</a></li><li><a href="?layer=116">116 – Group Stats, Profile Videos</a></li><li><a href="?layer=117">117 – WebRTC Phone Calls</a></li><li><a href="?layer=118">118 – Callback with 2FA, Countries list</a></li><li><a href="?layer=119">119 – Comments in channels, Threads, Anonymous Admins</a></li><li><a href="?layer=120">120 – Multipins, Message Stats, GeoLive v2</a></li><li><a href="?layer=121">121 – SVG-based Outlines for Stickers</a></li><li><a href="?layer=122">122 – Voice Chats</a></li><li><a href="?layer=123">123 – Voice Chat improvements</a></li><li><a href="?layer=124">124 – Expiring Invite links</a></li><li><a href="?layer=125">125 – Voice Chats in Broadcasts</a></li><li><a href="?layer=126">126 – Ban channels in channels</a></li><li><a href="?layer=127">127 – Payments in channels</a></li><li><a href="?layer=128">128 – Microthumbs for User/Chat profile photos</a></li><li><a href="?layer=129">129 – Video Chats</a></li><li><a href="?layer=130">130 – Custom placeholder for bot reply keyboards</a></li><li><a href="?layer=131">131 – Reset 2FA Password after a week</a></li><li><a href="?layer=132">132 – Chat themes</a></li><li><a href="?layer=133">133 – 64-bit IDs for User/Chat</a></li><li><a href="?layer=134">134 – Chat Requests, Shared Media Calendar</a></li><li><a href="?layer=135">135 – Send Message As a Channel</a></li><li><a href="?layer=136">136 – Reactions</a></li><li><a href="?layer=137">137 – Translations</a></li><li><a href="?layer=138">138 – GIF Sticker Packs</a></li><li><a href="?layer=139">139 – RTMP streaming</a></li><li><a href="?layer=140">140 – WebApps, Cloud Ringtones</a></li><li><a href="?layer=142">142 – TCP Reflectors</a></li><li><a href="?layer=143">143 – Premium Subscription, Cloud Invoices</a></li><li><a href="?layer=144">144 – Premium as a Gift, Custom Emoji</a></li><li><a href="?layer=145">145 – Custom Reactions, Statuses, Sign In with email</a></li><li><a href="?layer=147">147 – Keywords for stickers and emojis</a></li><li><a href="?layer=148">148 – Forums, collectible usernames</a></li><li><a href="?layer=150">150 – Pinned forum topics, general topic</a></li><li><a href="?layer=151">151 – Media spoilers, suggested profile photos</a></li><li><a href="?layer=152">152 – Real-time translations, Firebase SMS authentication</a></li><li><a href="?layer=153">153 – Modify created stickersets</a></li><li><a href="?layer=155">155 – Dates for reactions</a></li><li><a href="?layer=158">158 – Shared folders, per-chat wallpapers</a></li><li><a href="?layer=159">159 – Anonymous votes</a></li><li><a href="?layer=160">160 – Stories</a></li><li><a href="?layer=164"><strong>164 – Stories in channels</strong></a></li>
|
||||
<li class="divider"></li>
|
||||
<li><a href="/api/layers">More...</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<pre class="page_scheme"><code><a href="/constructor/updates" class="current_page_link" >updates</a>#74ae4240 updates:<a href="/type/Vector%20t" >Vector</a><<a href="/type/Update" >Update</a>> users:<a href="/type/Vector%20t" >Vector</a><<a href="/type/User" >User</a>> chats:<a href="/type/Vector%20t" >Vector</a><<a href="/type/Chat" >Chat</a>> date:<a href="/type/int" >int</a> seq:<a href="/type/int" >int</a> = <a href="/type/Updates" >Updates</a>;</code></pre></p>
|
||||
<p>{schema}</p>
|
||||
<h3><a class="anchor" href="#parameters" id="parameters" name="parameters"><i class="anchor-icon"></i></a>Parameters</h3>
|
||||
<table class="table">
|
||||
<thead>
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -147,7 +147,7 @@ var Main = {
|
|||
size = parseInt(size);
|
||||
while (this.scrollWidth > this.offsetWidth) {
|
||||
size -= 0.5;
|
||||
if (size >= init_size * 0.65) {
|
||||
if (size >= init_size * 0.75) {
|
||||
$(this).css('font-size', size + 'px');
|
||||
} else {
|
||||
break;
|
||||
|
@ -1563,29 +1563,6 @@ var MyBids = {
|
|||
}
|
||||
};
|
||||
|
||||
var PremiumHistory = {
|
||||
init: function() {
|
||||
Aj.onLoad(function(state) {
|
||||
$(document).on('click.curPage', '.js-load-more-rows', PremiumHistory.eLoadMoreRows);
|
||||
});
|
||||
},
|
||||
eLoadMoreRows: function(e) {
|
||||
e.preventDefault();
|
||||
var $table = $(this).closest('table');
|
||||
var offset_id = $(this).attr('data-next-offset');
|
||||
Aj.apiRequest('getPremiumHistory', {
|
||||
type: Aj.state.type || '',
|
||||
offset_id: offset_id
|
||||
}, function(result) {
|
||||
if (result.error) {
|
||||
return showAlert(result.error);
|
||||
}
|
||||
$('tbody', $table).append(result.body);
|
||||
$('tfoot', $table).html(result.foot);
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
var Sessions = {
|
||||
init: function() {
|
||||
Aj.onLoad(function(state) {
|
||||
|
@ -1774,7 +1751,7 @@ var Premium = {
|
|||
}
|
||||
if (result.found.name) {
|
||||
var $form = Aj.state.$premiumSearchForm;
|
||||
$form.field('query').value(uncleanHTML(result.found.name));
|
||||
$form.field('query').value(result.found.name);
|
||||
}
|
||||
$form.toggleClass('myself', result.found.myself);
|
||||
$form.field('recipient').value(result.found.recipient);
|
||||
|
@ -1893,325 +1870,6 @@ var Premium = {
|
|||
}
|
||||
};
|
||||
|
||||
var PremiumGiveaway = {
|
||||
init: function() {
|
||||
Aj.onLoad(function(state) {
|
||||
var cont = Aj.ajContainer;
|
||||
$(cont).on('click.curPage', '.js-another-giveaway-btn', PremiumGiveaway.eMoreGiveawayPremium);
|
||||
$(cont).on('click.curPage', '.js-giveaway-premium-btn', PremiumGiveaway.eGiveawayPremium);
|
||||
state.$giveawayPremiumPopup = $('.js-giveaway-premium-popup');
|
||||
$(cont).on('submit.curPage', '.js-giveaway-premium-form', PremiumGiveaway.eGiveawayPremiumSubmit);
|
||||
state.$giveawayPremiumForm = $('.js-giveaway-premium-form');
|
||||
state.$premiumSearchField = $('.js-premium-search-field');
|
||||
state.$premiumSearchForm = $('.js-premium-form');
|
||||
state.$premiumSearchForm.on('submit', PremiumGiveaway.eSearchSubmit);
|
||||
state.$premiumSearchForm.field('query').on('input', PremiumGiveaway.eSearchInput);
|
||||
state.$premiumSearchForm.field('query').on('change', PremiumGiveaway.eSearchChange);
|
||||
$('.js-form-clear', state.$premiumSearchForm).on('click', PremiumGiveaway.eSearchClear);
|
||||
state.$premiumQuantityField = $('.js-premium-quantity-field');
|
||||
state.$premiumSearchForm.field('quantity').on('change', PremiumGiveaway.eQuantityChanged);
|
||||
state.$premiumSearchForm.on('change', '.js-premium-options input.radio', PremiumGiveaway.eRadioChanged);
|
||||
state.$giveawayPremiumBtn = $('.js-giveaway-premium-btn');
|
||||
state.curQuantity = state.$premiumSearchForm.field('quantity').value();
|
||||
state.updLastReq = +Date.now();
|
||||
if (state.needUpdate) {
|
||||
state.updStateTo = setTimeout(PremiumGiveaway.updateState, Main.UPDATE_PERIOD);
|
||||
}
|
||||
$(cont).on('click.curPage', '.js-preview-sticker', function() {
|
||||
RLottie.playUntilEnd(this);
|
||||
});
|
||||
$('.js-preview-sticker').each(function() {
|
||||
RLottie.init(this, {playUntilEnd: true});
|
||||
});
|
||||
RLottie.init();
|
||||
});
|
||||
Aj.onUnload(function(state) {
|
||||
clearTimeout(state.updStateTo);
|
||||
state.needUpdate = false;
|
||||
Main.destroyForm(state.$giveawayPremiumForm);
|
||||
state.$premiumSearchForm.off('submit', PremiumGiveaway.eSearchSubmit);
|
||||
state.$premiumSearchForm.field('query').off('input', PremiumGiveaway.eSearchInput);
|
||||
state.$premiumSearchForm.field('query').on('change', PremiumGiveaway.eSearchChange);
|
||||
$('.js-form-clear', state.$premiumSearchForm).off('click', PremiumGiveaway.eSearchClear);
|
||||
state.$premiumSearchForm.field('quantity').off('change', PremiumGiveaway.eQuantityChanged);
|
||||
state.$premiumSearchForm.off('change', '.js-premium-options input.radio', PremiumGiveaway.eRadioChanged);
|
||||
state.$giveawayPremiumForm.off('change', 'input.checkbox', PremiumGiveaway.eCheckboxChanged);
|
||||
$('.js-preview-sticker').each(function() {
|
||||
RLottie.destroy(this);
|
||||
});
|
||||
});
|
||||
},
|
||||
updateState: function() {
|
||||
var now = +Date.now();
|
||||
if (document.hasFocus() ||
|
||||
Aj.state.updLastReq && (now - Aj.state.updLastReq) > Main.FORCE_UPDATE_PERIOD) {
|
||||
Aj.state.updLastReq = now;
|
||||
Aj.apiRequest('updatePremiumGiveawayState', {
|
||||
mode: Aj.state.mode,
|
||||
lv: Aj.state.lastVer,
|
||||
dh: Aj.state.lastDh,
|
||||
quantity: Aj.state.curQuantity
|
||||
}, function(result) {
|
||||
if (result.mode) {
|
||||
Aj.state.mode = result.mode;
|
||||
}
|
||||
if (result.html) {
|
||||
PremiumGiveaway.updateContent(result.html);
|
||||
} else {
|
||||
if (result.history_html) {
|
||||
PremiumGiveaway.updateHistory(result.history_html);
|
||||
}
|
||||
if (result.options_html) {
|
||||
PremiumGiveaway.updateOptions(result.options_html);
|
||||
}
|
||||
}
|
||||
if (result.lv) {
|
||||
Aj.state.lastVer = result.lv;
|
||||
if (Aj.state.$sentPopup) {
|
||||
closePopup(Aj.state.$sentPopup);
|
||||
}
|
||||
}
|
||||
if (result.dh) {
|
||||
Aj.state.lastDh = result.dh;
|
||||
}
|
||||
if (Aj.state.needUpdate && result.need_update) {
|
||||
Aj.state.updStateTo = setTimeout(PremiumGiveaway.updateState, Main.UPDATE_PERIOD);
|
||||
}
|
||||
});
|
||||
} else {
|
||||
if (Aj.state.needUpdate) {
|
||||
Aj.state.updStateTo = setTimeout(PremiumGiveaway.updateState, Main.CHECK_PERIOD);
|
||||
}
|
||||
}
|
||||
},
|
||||
eSearchInput: function(e) {
|
||||
var $field = Aj.state.$premiumSearchField;
|
||||
$('.js-search-field-error').html('');
|
||||
$field.removeClass('error');
|
||||
},
|
||||
eSearchChange: function(e) {
|
||||
PremiumGiveaway.searchSubmit();
|
||||
},
|
||||
eSearchClear: function(e) {
|
||||
var $form = Aj.state.$premiumSearchForm;
|
||||
var $field = Aj.state.$premiumSearchField;
|
||||
var $btn = Aj.state.$giveawayPremiumBtn;
|
||||
$form.field('recipient').value('');
|
||||
$form.field('query').value('').prop('disabled', false);
|
||||
$btn.prop('disabled', true);
|
||||
$field.removeClass('found');
|
||||
$('.js-search-field-error').html('');
|
||||
$field.removeClass('error');
|
||||
PremiumGiveaway.updateUrl();
|
||||
},
|
||||
eQuantityChanged: function() {
|
||||
var $form = Aj.state.$premiumSearchForm;
|
||||
var quantity = +$form.field('quantity').value();
|
||||
Aj.state.$premiumQuantityField.addClass('loading').removeClass('play').redraw().addClass('play');
|
||||
Aj.apiRequest('updatePremiumGiveawayPrices', {
|
||||
quantity: quantity
|
||||
}, function(result) {
|
||||
var $form = Aj.state.$premiumSearchForm;
|
||||
var $field = Aj.state.$premiumQuantityField;
|
||||
var $btn = Aj.state.$giveawayPremiumBtn;
|
||||
if (result.error) {
|
||||
$('.js-quantity-field-error').html(result.error);
|
||||
$field.addClass('error').removeClass('found');
|
||||
quantity = 0;
|
||||
} else {
|
||||
$('.js-quantity-field-error').html('');
|
||||
$field.removeClass('error');
|
||||
}
|
||||
$('.js-boost-value').html(result.boosts);
|
||||
if (result.button_label) {
|
||||
$('.js-prepay-premium-label').html(result.button_label);
|
||||
}
|
||||
if (result.options_html) {
|
||||
PremiumGiveaway.updateOptions(result.options_html);
|
||||
}
|
||||
if (result.dh) {
|
||||
Aj.state.lastDh = result.dh;
|
||||
}
|
||||
if (quantity > 0 && $form.field('recipient').value()) {
|
||||
$btn.prop('disabled', false);
|
||||
} else {
|
||||
$btn.prop('disabled', true);
|
||||
}
|
||||
Aj.state.curQuantity = quantity;
|
||||
PremiumGiveaway.updateUrl();
|
||||
Aj.state.$premiumQuantityField.removeClass('loading');
|
||||
});
|
||||
},
|
||||
eRadioChanged: function() {
|
||||
PremiumGiveaway.updateUrl();
|
||||
},
|
||||
eSearchSubmit: function(e) {
|
||||
e.preventDefault();
|
||||
PremiumGiveaway.searchSubmit();
|
||||
},
|
||||
searchSubmit: function() {
|
||||
var $form = Aj.state.$premiumSearchForm;
|
||||
var recipient = $form.field('recipient').value();
|
||||
var quantity = $form.field('quantity').value();
|
||||
var query = $form.field('query').value();
|
||||
var months = $form.field('months').value();
|
||||
if (!query.length) {
|
||||
$form.field('query').focus();
|
||||
return;
|
||||
}
|
||||
Aj.state.$premiumSearchField.addClass('loading').removeClass('play').redraw().addClass('play');
|
||||
Aj.showProgress();
|
||||
Aj.apiRequest('searchPremiumGiveawayRecipient', {
|
||||
query: recipient || query,
|
||||
quantity: quantity,
|
||||
months: months
|
||||
}, function(result) {
|
||||
Aj.hideProgress();
|
||||
PremiumGiveaway.updateResult(result);
|
||||
Aj.state.$premiumSearchField.removeClass('loading');
|
||||
});
|
||||
},
|
||||
updateResult: function(result) {
|
||||
var $form = Aj.state.$premiumSearchForm;
|
||||
var $field = Aj.state.$premiumSearchField;
|
||||
var $btn = Aj.state.$giveawayPremiumBtn;
|
||||
if (result.error) {
|
||||
$('.js-search-field-error').html(result.error);
|
||||
$field.addClass('error').removeClass('found');
|
||||
$form.field('query').prop('disabled', false);
|
||||
} else {
|
||||
$('.js-search-field-error').html('');
|
||||
$field.removeClass('error');
|
||||
if (result.found) {
|
||||
if (result.found.photo) {
|
||||
$('.js-premium-search-photo', $field).html(result.found.photo);
|
||||
}
|
||||
if (result.found.name) {
|
||||
var $form = Aj.state.$premiumSearchForm;
|
||||
$form.field('query').value(uncleanHTML(result.found.name));
|
||||
}
|
||||
$form.field('recipient').value(result.found.recipient);
|
||||
$field.addClass('found');
|
||||
$form.field('query').prop('disabled', true);
|
||||
if (Aj.state.curQuantity > 0) {
|
||||
$btn.prop('disabled', false);
|
||||
} else {
|
||||
$btn.prop('disabled', true);
|
||||
}
|
||||
} else {
|
||||
$form.field('recipient').value('');
|
||||
$field.removeClass('found');
|
||||
$form.field('query').prop('disabled', false);
|
||||
$btn.prop('disabled', true);
|
||||
}
|
||||
}
|
||||
PremiumGiveaway.updateUrl();
|
||||
},
|
||||
updateUrl: function() {
|
||||
var new_url = '';
|
||||
var $form = Aj.state.$premiumSearchForm;
|
||||
var recipient = $form.field('recipient').value();
|
||||
var quantity = Aj.state.curQuantity;
|
||||
var months = $form.field('months').value();
|
||||
if (recipient) {
|
||||
new_url += '&recipient=' + encodeURIComponent(recipient);
|
||||
}
|
||||
if (quantity) {
|
||||
new_url += '&quantity=' + encodeURIComponent(quantity);
|
||||
}
|
||||
if (months) {
|
||||
new_url += '&months=' + encodeURIComponent(months);
|
||||
}
|
||||
if (new_url) {
|
||||
new_url = '?' + new_url.substr(1);
|
||||
}
|
||||
var loc = Aj.location(), path = loc.pathname + loc.search;
|
||||
Aj.setLocation(new_url, path != '/premium/giveaway');
|
||||
},
|
||||
updateOptions: function(html) {
|
||||
var $form = Aj.state.$premiumSearchForm;
|
||||
var months = $form.field('months').value();
|
||||
$('.js-premium-options').replaceWith(html);
|
||||
$form.field('months').value(months);
|
||||
},
|
||||
updateHistory: function(html) {
|
||||
$('.js-premium-history').replaceWith(html);
|
||||
},
|
||||
updateContent: function(html) {
|
||||
$('.js-main-content').html(html).find('.js-preview-sticker').each(function() {
|
||||
RLottie.init(this, {playUntilEnd: true});
|
||||
});
|
||||
},
|
||||
eGiveawayPremium: function(e) {
|
||||
e.stopImmediatePropagation();
|
||||
e.preventDefault();
|
||||
var $form = Aj.state.$premiumSearchForm;
|
||||
var recipient = $form.field('recipient').value();
|
||||
var quantity = $form.field('quantity').value();
|
||||
var months = $form.field('months').value();
|
||||
Aj.apiRequest('initGiveawayPremiumRequest', {
|
||||
recipient: recipient,
|
||||
quantity: quantity,
|
||||
months: months
|
||||
}, function(result) {
|
||||
if (result.error) {
|
||||
return showAlert(result.error);
|
||||
}
|
||||
$('.js-giveaway-premium-content', Aj.state.$giveawayPremiumPopup).html(result.content);
|
||||
$('.js-giveaway-premium-button', Aj.state.$giveawayPremiumPopup).html(result.button);
|
||||
Aj.state.giveawayPrice = result.amount;
|
||||
Aj.state.itemTitle = result.item_title;
|
||||
Aj.state.$giveawayPremiumForm.field('id').value(result.req_id);
|
||||
RLottie.WORKERS_LIMIT = 1;
|
||||
openPopup(Aj.state.$giveawayPremiumPopup, {
|
||||
onOpen: function() {
|
||||
$('.js-preview-sticker').each(function() {
|
||||
RLottie.init(this, {playUntilEnd: true});
|
||||
});
|
||||
},
|
||||
onClose: function() {
|
||||
$('.js-preview-sticker').each(function() {
|
||||
RLottie.destroy(this);
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
},
|
||||
eGiveawayPremiumSubmit: function(e) {
|
||||
e.preventDefault();
|
||||
var $form = $(this);
|
||||
var item_title = Aj.state.itemTitle;
|
||||
var req_id = $form.field('id').value();
|
||||
closePopup(Aj.state.$giveawayPremiumPopup);
|
||||
QR.showPopup({
|
||||
request: {
|
||||
method: 'getGiveawayPremiumLink',
|
||||
params: {
|
||||
id: req_id
|
||||
}
|
||||
},
|
||||
title: l('WEB_POPUP_QR_GIVEAWAY_HEADER'),
|
||||
description: l('WEB_POPUP_QR_GIVEAWAY_TEXT', {
|
||||
amount: '<span class="icon-before icon-ton-text js-amount_fee">' + Aj.state.giveawayPrice + '</span>'
|
||||
}),
|
||||
qr_label: item_title,
|
||||
tk_label: l('WEB_POPUP_QR_GIVEAWAY_TK_BUTTON'),
|
||||
terms_label: l('WEB_POPUP_QR_PROCEED_TERMS')
|
||||
});
|
||||
Aj.state.needUpdate = true;
|
||||
},
|
||||
eMoreGiveawayPremium: function(e) {
|
||||
e.preventDefault();
|
||||
e.stopImmediatePropagation();
|
||||
Aj.apiRequest('repeatPremiumGiveaway', {}, function(result) {
|
||||
if (result.error) {
|
||||
return showAlert(result.error);
|
||||
}
|
||||
Aj.location('/premium/giveaway');
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
var QR = {
|
||||
showPopup: function(options) {
|
||||
options = $.extend({
|
||||
|
|
Loading…
Reference in a new issue