%PDF- %PDF- 403WebShell
403Webshell
Server IP : 37.220.80.31  /  Your IP : 52.15.224.97
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/js/ui/entity-editor/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/www-root/data/www/dev.artlot24.ru/bitrix/js/ui/entity-editor/js/editor-enum.js
BX.namespace("BX.UI");

//region ENTITY EDITOR MODE
if(typeof BX.UI.EntityEditorMode === "undefined")
{
	BX.UI.EntityEditorMode =
		{
			intermediate: 0,
			edit: 1,
			view: 2,
			names: { view: "view",  edit: "edit" },
			getName: function(id)
			{
				if(id === this.edit)
				{
					return this.names.edit;
				}
				else if(id === this.view)
				{
					return this.names.view;
				}
				return "";
			},
			parse: function(str)
			{
				str = str.toLowerCase();
				if(str === this.names.edit)
				{
					return this.edit;
				}
				else if(str === this.names.view)
				{
					return this.view;
				}
				return this.intermediate;
			}
		};
}
//endregion

//region ENTITY EDITOR VISIBILITY POLICY
if(typeof BX.UI.EntityEditorVisibilityPolicy === "undefined")
{
	BX.UI.EntityEditorVisibilityPolicy =
		{
			always: 0,
			view: 1,
			edit: 2,
			parse: function(str)
			{
				str = str.toLowerCase();
				if(str === "view")
				{
					return this.view;
				}
				else if(str === "edit")
				{
					return this.edit;
				}
				return this.always;
			},
			checkVisibility: function(control)
			{
				var mode = control.getMode();
				var policy = control.getVisibilityPolicy();

				if(policy === this.view)
				{
					return mode === BX.UI.EntityEditorMode.view;
				}
				else if(policy === this.edit)
				{
					return mode === BX.UI.EntityEditorMode.edit;
				}
				return true;
			}
		};
}
//endregion

//region ENTITY EDITOR MODE OPTIONS
if(typeof BX.UI.EntityEditorModeOptions === "undefined")
{
	BX.UI.EntityEditorModeOptions =
		{
			none:       0x0,
			exclusive:  0x1,
			individual: 0x2,
			saveOnExit: 0x40,
			check: function(options, option)
			{
				return((options & option) === option);
			}
		};
}
//endregion

if(typeof BX.UI.EntityEditorControlOptions === "undefined")
{
	BX.UI.EntityEditorControlOptions =
		{
			none: 0,
			showAlways: 1,
			check: function(options, option)
			{
				return((options & option) === option);
			}
		};
}

if(typeof BX.UI.EntityEditorPriority === "undefined")
{
	BX.UI.EntityEditorPriority =
		{
			undefined: 0,
			normal: 1,
			high: 2
		};
}

//region EDITOR MODE SWITCH TYPE
if(typeof BX.UI.EntityEditorModeSwitchType === "undefined")
{
	BX.UI.EntityEditorModeSwitchType =
		{
			none:       0x0,
			common:     0x1,
			button:     0x2,
			content:    0x4,
			check: function(options, option)
			{
				return((options & option) === option);
			}
		};
}
//endregion
if(typeof BX.UI.EditorFileStorageType === "undefined")
{
	BX.UI.EditorFileStorageType =
		{
			undefined: 0,
			file: 1,
			webdav: 2,
			diskfile: 3
		};
}
if(typeof BX.UI.EntityFieldAttributeType === "undefined")
{
	BX.UI.EntityFieldAttributeType =
		{
			undefined:  0,
			hidden:     1,
			readonly:   2,
			required:   3
		};
}
if(typeof BX.UI.EntityFieldAttributePhaseGroupType === "undefined")
{
	BX.UI.EntityFieldAttributePhaseGroupType =
		{
			undefined:  0,
			general:    1,
			pipeline:   2,
			junk:       3
		};
}

Youez - 2016 - github.com/yon3zu
LinuXploit