uawdijnntqw1x1x1
IP : 18.119.1.164
Hostname : axolotl
Kernel : Linux axolotl 4.9.0-13-amd64 #1 SMP Debian 4.9.228-1 (2020-07-05) x86_64
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,
OS : Linux
PATH:
/
var
/
www
/
axolotl
/
data
/
www
/
rostov.axolotls.ru
/
bitrix
/
js
/
calendar
/
sliderloader
/
src
/
sliderloader.js
/
/
"use strict"; import {Loc, Runtime, Type} from "main.core"; export class SliderLoader { constructor(eventId, options = {}) { this.extensionName = (Type.isString(eventId) && (eventId === 'NEW' || eventId.substr(0, 4) === 'EDIT')) ? 'EventEditForm' : 'EventViewForm'; this.entryId = (Type.isString(eventId) && eventId.substr(0, 4) === 'EDIT') ? parseInt(eventId.substr(4)) : parseInt(eventId); this.entry = options.entry || null; this.entryDateFrom = Type.isDate(options.entryDateFrom) ? options.entryDateFrom : null; this.timezoneOffset = options.timezoneOffset; this.type = options.type; this.ownerId = options.ownerId; this.userId = options.userId; this.sliderId = "calendar:slider-" + Math.random(); } show() { BX.SidePanel.Instance.open(this.sliderId, { contentCallback: this.loadExtension.bind(this), label: { text: Loc.getMessage('CALENDAR_EVENT'), bgColor: "#55D0E0" } }); } loadExtension(slider) { return new Promise((resolve) => { Runtime.loadExtension('calendar.' + this.extensionName.toLowerCase()).then((exports) => { if (exports && exports[this.extensionName]) { const calendarForm = new exports[this.extensionName]( { entryId: this.entryId, entry: this.entry, entryDateFrom: this.entryDateFrom, timezoneOffset: this.timezoneOffset, type: this.type, ownerId: this.ownerId, userId: this.userId } ); if (typeof calendarForm.initInSlider) { calendarForm.initInSlider(slider, resolve); } } }); }); } }
/var/www/axolotl/data/www/rostov.axolotls.ru/bitrix/js/calendar/sliderloader/src/sliderloader.js