File manager - Edit - /home/c14075/dragmet-ural.ru/www/bitrix/js/calendar/controls/src/confirmeditdialog.js
Back
import {Dom, Loc} from 'main.core'; import {EventEmitter, BaseEvent} from 'main.core.events'; export class ConfirmEditDialog extends EventEmitter { DOM = {}; constructor() { super(); this.setEventNamespace('BX.Calendar.Controls.ConfirmEditDialog'); this.zIndex = 3200; this.id = 'confirm-edit-dialog-' + Math.round(Math.random() * 10000); } show() { let content = Dom.create('DIV'); this.dialog = new BX.PopupWindow(this.id, null, { overlay: {opacity: 10}, autoHide: true, closeByEsc : true, zIndex: this.zIndex, offsetLeft: 0, offsetTop: 0, draggable: true, bindOnResize: false, titleBar: Loc.getMessage('EC_EDIT_REC_EVENT'), closeIcon: { right : "12px", top : "10px"}, className: 'bxc-popup-window', buttons: [ new BX.PopupWindowButtonLink({ text: Loc.getMessage('EC_SEC_SLIDER_CANCEL'), className: "popup-window-button-link-cancel", events: {click : this.close.bind(this)} }) ], content: content, events: {}, cacheable: false }); content.appendChild(new BX.PopupWindowButton({ text: Loc.getMessage('EC_REC_EV_ONLY_THIS_EVENT'), events: { click: ()=>{ this.emit('onEdit', new BaseEvent({data: {recursionMode: 'this'}})); this.close(); } } }).buttonNode); content.appendChild(new BX.PopupWindowButton({ text: Loc.getMessage('EC_REC_EV_NEXT'), events: { click: ()=>{ this.emit('onEdit', new BaseEvent({data: {recursionMode: 'next'}})); this.close(); } } }).buttonNode); content.appendChild(new BX.PopupWindowButton( { text: Loc.getMessage('EC_REC_EV_ALL'), events: { click : ()=>{ this.emit('onEdit', new BaseEvent({data: {recursionMode: 'all'}})); this.close(); } } }).buttonNode); this.dialog.show(); } close() { if (this.dialog) { this.dialog.close(); } } }
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.26 |
proxy
|
phpinfo
|
Settings