Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;var ShopComponent = $i_64.extend({
- classId: 'ShopComponent',
- componentId: 'shop',
- init: function(entity, options) {
- var self = this;
- if (ige.isClient) {
- self.unitSkinCount = {};
- self.itemSkinCount = {};
- self.skinItems = {};
- self.currentPagination = 1;
- self.perPageItems = 99;
- self.currentType = '';
- self.oldModalHTMLBody = '';
- if (!ige.mobileControls.isMobile) {
- $('.open-modd-shop-button').show().on('click', function() {
- var player = ige.client.myPlayer;
- if (player && !player._stats.isAdBlockEnabled) {
- countAdImpression(gameId, 'shop')
- }
- self.openModdShop()
- })
- }
- $('.open-coin-shop-button').show().on('click', function() {
- self.openCoinShop()
- });
- $('.shop-navbar .nav-item').on('click', function() {
- $('.shop-navbar .nav-link').each(function() {
- $(this).removeClass('active')
- });
- self.shopType = $(this).find('.nav-link').attr('name');
- self.shopKey = '';
- $('#modd-shop-modal .shop-items').html('');
- $(this).find('.nav-link').addClass('active');
- self.updateModdShop()
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement