File manager - Edit - /home/web/vm-3fadc827.na4u.ru/www/bitrix/modules/calendar/install/js/calendar/rooms/src/reservebutton.js
Back
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) } }); } }
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.28 |
proxy
|
phpinfo
|
Settings