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/rooms/src/ |
Upload File : |
import { Type, Dom, Loc } from 'main.core'; import { AddButton } from 'calendar.controls'; export class ReserveButton extends AddButton { constructor(params = {}) { super(params); this.setEventNamespace('BX.Calendar.Rooms.ReserveButton'); this.zIndex = params.zIndex || 3200; this.popupId = params.id || 'add-button-' + Math.round(Math.random() * 10000); this.showTasks = params.showTasks; this.addEntryHandler = Type.isFunction(params.addEntry) ? params.addEntry : null; this.addTaskHandler = Type.isFunction(params.addTask) ? params.addTask : null; this.create(); } create() { this.DOM.wrap = Dom.create('button', { props: { className: 'ui-btn ui-btn-success', type: 'button' }, html: Loc.getMessage('EC_RESERVE'), events: { click: this.addEntry.bind(this) } }); } }