Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(".confirmBuyPack").click(function () {
- $("#packOverlay").hide();
- @{
- if (user.DBUserAccount.XBOXCoins == 0)
- {
- <text>
- alert("Not enough coins to open this pack, please deposit more coins into your account");
- </text>
- }
- else
- {
- <text>
- window.location = "/packs/open/" + clickedPackType;
- </text>
- }
- } /*
- console.log("Confirm buy pack");
- $(".packResults .playerCard").remove();
- $.getJSON("/packs/open/" + clickedPackType, function (data) {
- console.log(data);
- packData = data;
- cardsShown = 0;
- $(".coinTotal").html(data.coinValue + " (" + data.realCoinValue + ")");
- console.log(data.coinValue);
- ShowCard(cardsShown);
- });
- */
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement