403Webshell
Server IP : 80.87.202.40  /  Your IP : 216.73.216.169
Web Server : Apache
System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64
User : bitrix ( 600)
PHP Version : 8.2.27
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : ON |  Perl : ON |  Python : OFF |  Sudo : ON |  Pkexec : ON
Directory :  /home/bitrix/ext_www/ilovecveti.ru/bitrix/js/yandex.market/orderview/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home/bitrix/ext_www/ilovecveti.ru/bitrix/js/yandex.market/orderview/basketconfirmform.js
(function(BX, $, window) {

	const Plugin = BX.namespace('YandexMarket.Plugin');
	const FieldReference = BX.namespace('YandexMarket.Field.Reference');
	const OrderView = BX.namespace('YandexMarket.OrderView');

	const constructor = OrderView.BasketConfirmForm = FieldReference.Base.extend({

		defaults: {
			inputElement: '.js-yamarket-basket-confirm-form__input',
			productsElement: '.js-yamarket-basket-confirm-form__products',

			langPrefix: 'YANDEX_MARKET_T_TRADING_ORDER_VIEW_BASKET_CONFIRM_',
			lang: {},
		},

		setItemsChanges: function(changes) {
			const element = this.getElement('products');
			const text = this.compileItemsChanges(changes);

			element.html(text);
		},

		compileItemsChanges: function(changes) {
			const rows = [];

			for (const change of changes) {
				rows.push(this.getLang('ITEM_CHANGE', {
					NAME: change.name,
					COUNT: change.diff,
				}));
			}

			return rows.join('<hr />');
		},

	}, {
		dataName: 'orderViewBasketConfirmForm',
		pluginName: 'YandexMarket.OrderView.BasketConfirmForm',
	});

})(BX, jQuery, window);

Youez - 2016 - github.com/yon3zu
LinuXploit