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/cvetdv.ru/bitrix/js/skyweb24.popuppro/admin/ |
Upload File : |
BX.namespace("PopupproAdminRoulette"); BX.PopupproAdminRoulette = function () { this.init(); }; BX.PopupproAdminRoulette.prototype = { init: function () { this.c_table = document.querySelector(".block.roulette"); this._events(); }, colorPickerInit(e) { return new BX.ColorPicker({ bindElement: BX(e.target), defaultColor: e.target.value, onColorSelected: function (value) { e.target.value = value; e.target.style.background = value; }, selectedColor: e.target.value, colorPreview: false, popupOptions: { angle: true, autoHide: true, closeByEsc: true, events: { onPopupClose: () => BX.onCustomEvent("onPreviewUpdate", [this]) } } }).open(); }, _events: function () { BX.bindDelegate(BX(document), "click", { className: "roulette_color_picker"}, this.colorPickerInit); BX.bindDelegate(BX(document), "input", { className: "roulette_color_picker"}, e => e.preventDefault()); BX.bindDelegate(BX(document), "keyup", { className: "roulette_color_picker"}, e => e.preventDefault()); BX.bindDelegate(BX(document), "keydown", { className: "roulette_color_picker"}, e => e.preventDefault()); BX.bind(this.c_table, "input", e => BX.onCustomEvent("onPreviewUpdate", [this])); } }