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/cvetdv.ru/bitrix/components/bitrix/lists.live.feed/templates/.default/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home/bitrix/ext_www/cvetdv.ru/bitrix/components/bitrix/lists.live.feed/templates/.default/right.js
;(function(){

	window.BXfpListsSelectCallback = function(item)
	{
		BXfpListsMedalSelectCallback(item, 'lists');
	};

	window.BXfpListsMedalLinkName = function(name, type)
	{
		if (type != 'lists')
			type = 'medal';

		if (BX.SocNetLogDestination.getSelectedCount(name) <= 0)
			BX('bx-'+type+'-tag').innerHTML = BX.message("LISTS_ADD_STAFF");
		else
			BX('bx-'+type+'-tag').innerHTML = BX.message("LISTS_ADD_STAFF_MORE");
	};

	window.BXfpListsMedalSelectCallback = function(item, type)
	{
		if (type != 'lists')
			type = 'medal';

		var prefix = 'U';

		BX('feed-add-post-'+type+'-item').appendChild(
			BX.create("span", {
				attrs : { 'data-id' : item.id },
				props : { className : "feed-add-post-"+type+" feed-add-post-destination-users" },
				children: [
					BX.create("input", {
						attrs : { 'type' : 'hidden', 'name' : 'LISTS'+'['+prefix+'][]', 'value' : item.id }
					}),
					BX.create("span", {
						props : { 'className' : "feed-add-post-"+type+"-text" },
						html : item.name
					}),
					BX.create("span", {
						props : { 'className' : "bizproc-type-control-user-delete"},
						events : {
							'click' : function(e){
								BX.SocNetLogDestination.deleteItem(item.id, 'users', window["BXSocNetLogListsFormName"]);
								BXfpListsUnSelectCallback(item);
								BX.PreventDefault(e)
							},
							'mouseover' : function(){
								BX.addClass(this.parentNode, 'feed-add-post-'+type+'-hover')
							},
							'mouseout' : function(){
								BX.removeClass(this.parentNode, 'feed-add-post-'+type+'-hover')
							}
						}
					})
				]
			})
		);

		BX('feed-add-post-'+type+'-input').value = '';
		BXfpListsMedalLinkName(window["BXSocNetLogListsFormName"], type);
	};

	window.BXfpListsUnSelectCallback = function(item)
	{
		BXfpListsMedalUnSelectCallback(item, 'lists');
	};

	window.BXfpListsMedalUnSelectCallback = function(item, type)
	{
		var elements = BX.findChildren(BX('feed-add-post-'+type+'-item'), {attribute: {'data-id': ''+item.id+''}}, true);
		if (elements != null)
		{
			for (var j = 0; j < elements.length; j++)
				BX.remove(elements[j]);
		}
		BX('feed-add-post-'+type+'-input').value = '';
		BXfpListsMedalLinkName(window["BXSocNetLogListsFormName"], type);
	};

	window.BXfpListsOpenDialogCallback = function()
	{
		BX.style(BX('feed-add-post-lists-input-box'), 'display', 'inline-block');
		BX.style(BX('bx-lists-tag'), 'display', 'none');
		BX.focus(BX('feed-add-post-lists-input'));
	};

	window.BXfpListsCloseDialogCallback = function()
	{
		if (!BX.SocNetLogDestination.isOpenSearch() && BX('feed-add-post-lists-input').value.length <= 0)
		{
			BX.style(BX('feed-add-post-lists-input-box'), 'display', 'none');
			BX.style(BX('bx-lists-tag'), 'display', 'inline-block');
			BX.SocNetLogDestination.BXfpDisableBackspace();
		}
	};

	window.BXfpListsCloseSearchCallback = function()
	{
		if (!BX.SocNetLogDestination.isOpenSearch() && BX('feed-add-post-lists-input').value.length > 0)
		{
			BX.style(BX('feed-add-post-lists-input-box'), 'display', 'none');
			BX.style(BX('bx-lists-tag'), 'display', 'inline-block');
			BX('feed-add-post-lists-input').value = '';
			BX.SocNetLogDestination.BXfpDisableBackspace();
		}
	};

	/**
	 * @return boolean
	 */
	window.BXfpListsSearch = function(event)
	{
		if(event.keyCode == 16 || event.keyCode == 17 || event.keyCode == 18)
			return false;

		if (event.keyCode == 13)
		{
			BX.SocNetLogDestination.selectFirstSearchItem(window["BXSocNetLogListsFormName"]);
			return true;
		}
		if (event.keyCode == 27)
		{
			BX('feed-add-post-lists-input').value = '';
			BX.style(BX('bx-lists-tag'), 'display', 'inline');
		}
		else
		{
			BX.SocNetLogDestination.search(BX('feed-add-post-lists-input').value, true, window["BXSocNetLogListsFormName"]);
		}

		if (!BX.SocNetLogDestination.isOpenDialog() && BX('feed-add-post-lists-input').value.length <= 0)
		{
			BX.SocNetLogDestination.openDialog(window["BXSocNetLogListsFormName"]);
		}
		else
		{
			if (BX.SocNetLogDestination.sendEvent && BX.SocNetLogDestination.isOpenDialog())
				BX.SocNetLogDestination.closeDialog();
		}
		if (event.keyCode == 8)
		{
			BX.SocNetLogDestination.sendEvent = true;
		}
		return true;
	};

	/**
	 * @return boolean
	 */
	window.BXfpListsSearchBefore = function(event)
	{
		if (event.keyCode == 8 && BX('feed-add-post-lists-input').value.length <= 0)
		{
			BX.SocNetLogDestination.sendEvent = false;
			BX.SocNetLogDestination.deleteLastItem(window["BXSocNetLogListsFormName"]);
		}
		return true;
	};
})();

Youez - 2016 - github.com/yon3zu
LinuXploit