File manager - Edit - /home/c14075/dragmet-ural.ru/www/bitrix/modules/sender/install/js/sender/rc_editor/src/rc_editor.js
Back
import { Event } from 'main.core'; export class RcEditor { constructor(options = {elementId: string, conditionElementId: string}) { this.element = document.getElementById(options.elementId); this.conditionElement = document.getElementById(options.conditionElementId); if(!this.element || !this.conditionElement) { return; } this.element.disabled = !this.conditionElement.checked; this.bindEvents(); } bindEvents() { Event.bind(this.conditionElement, 'change', (event) => { this.element.disabled = !event.target.checked; }); } }
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.27 |
proxy
|
phpinfo
|
Settings