File manager - Edit - /home/web/vm-3fadc827.na4u.ru/www/bitrix/modules/calendar/install/js/calendar/roomsmanager/src/roomssection.js
Back
import { Util } from 'calendar.util'; import { CalendarSection } from 'calendar.sectionmanager'; export class RoomsSection extends CalendarSection { constructor(data) { super(data); this.updateData(data); this.calendarContext = Util.getCalendarContext(); // this.roomsManager = this.calendarContext.roomsManager; } updateData(data) { this.data = data || {}; this.type = data.CAL_TYPE || ''; this.necessity = data.NECESSITY || 'N'; this.capacity = parseInt(data.CAPACITY) || 0; this.ownerId = parseInt(data.OWNER_ID) || 0; this.id = parseInt(data.ID); this.location_id = parseInt(data.LOCATION_ID); this.color = this.data.COLOR; this.name = this.data.NAME; } belongsToView() { // const calendarContext = Util.getCalendarContext(); // return this.type === calendarContext.getCalendarType() // && this.ownerId === calendarContext.getOwnerId(); return true; } }
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.27 |
proxy
|
phpinfo
|
Settings