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/rospirotorg.ru/bitrix/js/rest/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home/bitrix/ext_www/rospirotorg.ru/bitrix/js/rest/userfield.js
;(function(){
	'use strict';

	BX.namespace('BX.rest');

	if(typeof(BX.rest.UserField) !== 'undefined')
	{
		return;
	}

	BX.rest.UserField = function(id, param)
	{
		this.id = id;

		this.param = {
			callback: param.callback,
			value: param.value
		};

		this.inited = false;

		this.init();
	};

	BX.rest.UserField.prototype.init = function()
	{
		if(this.inited)
		{
			return;
		}

		var appLayout = BX.rest.AppLayout.get(this.id);

		if (!appLayout)
		{
			return;
		}

		appLayout.allowInterface(['resizeWindow']);

		var placementInterface = appLayout.messageInterface;
		placementInterface.setValue = BX.proxy(this.setValue, this);
		placementInterface.getValue = BX.proxy(this.getValue, this);
		placementInterface.resizeWindow = function(params, cb)
		{
			var f = BX(this.params.layoutName);
			params.height = parseInt(params.height);

			if(!!params.height)
			{
				f.style.height = params.height + 'px';
			}

			var p = BX.pos(f);
			cb({width: p.width, height: p.height});
		};
	};

	BX.rest.UserField.prototype.setValue = function(value, callback)
	{
		this.param.value = value;

		if(BX.type.isFunction(this.param.callback))
		{
			this.param.callback.apply(this, [value]);
		}

		callback();
	};

	BX.rest.UserField.prototype.getValue = function(params, cb)
	{
		cb(this.param.value);
	};


})();

Youez - 2016 - github.com/yon3zu
LinuXploit