%PDF- %PDF- 403WebShell
403Webshell
Server IP : 37.220.80.31  /  Your IP : 18.118.0.42
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux 3051455-guretool.twc1.net 5.15.0-107-generic #117-Ubuntu SMP Fri Apr 26 12:26:49 UTC 2024 x86_64
User : www-root ( 1010)
PHP Version : 7.4.33
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/www-root/data/www/dev.artlot24.ru/bitrix/modules/catalog/install/js/catalog/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/www-root/data/www/dev.artlot24.ru/bitrix/modules/catalog/install/js/catalog//iblock_catalog.js
BX.namespace('BX.Catalog.Admin');
BX.Catalog.Admin.IblockCatalog = (function()
{
var classDescription = function(params)
{
	this.errorCode = 0;
	this.containerId = (typeof(params.containerId) !== 'undefined' && params.containerId ? params.containerId : '');
	if (!this.containerId)
		this.errorCode = -1;
	this.enableSaleRecurring = !(typeof(params.enableSaleRecurring) !== 'undefined' && params.enableSaleRecurring === false);
	this.isSku = (typeof(params.isSku) !== 'undefined' && params.isSku === true);
	this.rows = {
		subscription: null,
		yandexExport: null,
		vat: null,
		skuData: null
	};
	this.controls = {
		catalog: null,
		useSku: null,
		sku: null,
		subscription: null,
		yandexExport: null
	};

	if (this.errorCode === 0)
		BX.ready(BX.proxy(this.init, this));
};

classDescription.prototype.init = function()
{
	if (this.enableSaleRecurring)
		this.rows.subscription = BX('tr_SUBSCRIPTION');
	this.rows.yandexExport = BX('tr_YANDEX_EXPORT');
	this.rows.vat = BX('tr_VAT_ID');

	this.controls.catalog = BX('CATALOG_Y');
	if (!this.isSku)
	{
		this.controls.useSku = BX('USE_SKU_Y');
		this.rows.skuData = BX('sku_data');
	}
	if (this.enableSaleRecurring)
	{
		this.controls.subscription = BX('SUBSCRIPTION_Y');
	}
	this.controls.yandexExport = BX('YANDEX_EXPORT_Y');

	if (this.errorCode !== 0)
		return;

	BX.bindDelegate(BX(this.containerId), 'click', { 'attribute': 'data-checkbox' }, BX.proxy(this.clickHandler, this))
};

classDescription.prototype.clickHandler = function()
{
	var target = BX.proxy_context,
		displayMode;

	if (target.id === this.controls.catalog.id)
	{
		displayMode = (target.checked ? 'table-row' : 'none');
		if (this.enableSaleRecurring && this.rows.subscription)
		{
			BX.adjust(this.rows.subscription, {style: {display: displayMode}});
			if (!target.checked)
				this.controls.subscription.checked = false;
		}
		BX.adjust(this.rows.yandexExport, { style: { display: displayMode } });
		BX.adjust(this.rows.vat, { style: { display: displayMode } });
		if (!this.isSku && this.controls.useSku)
			this.controls.useSku.disabled = false;
		if (!target.checked)
			this.controls.yandexExport.checked = false;
	}
	else if (!this.isSku && target.id === this.controls.useSku.id && !this.controls.useSku.disabled)
	{
		displayMode = (target.checked ? 'block' : 'none');
		BX.adjust(this.rows.skuData, { style: { display: displayMode } });
		if (this.enableSaleRecurring && this.controls.subscription)
			this.controls.subscription.disabled = target.checked;
	}
	else if (this.enableSaleRecurring && target.id === this.controls.subscription.id && !this.controls.subscription.disabled)
	{
		if (!this.isSku && this.controls.useSku)
			this.controls.useSku.disabled = target.checked;
	}
};

classDescription.prototype.destroy = function()
{
	this.rows.subscription = null;
	this.rows.yandexExport = null;
	this.rows.vat = null;
	this.rows.skuData = null;

	this.controls.catalog = null;
	this.controls.useSku = null;
	this.controls.sku = null;
	this.controls.subscription = null;
	this.controls.yandexExport = null;
};

return classDescription;
})();

Youez - 2016 - github.com/yon3zu
LinuXploit