File manager - Edit - /home/c14075/dragmet-ural.ru/www/bitrix/modules/socialnetwork/install/js/socialnetwork/common/src/waiter.js
Back
import {Type} from 'main.core'; export class Waiter { static instance = null; static getInstance() { if (Type.isNull(Waiter.instance)) { Waiter.instance = new Waiter(); } return Waiter.instance; } constructor() { this.waitTimeout = null; this.waitPopup = null; } show(timeout) { if (timeout !== 0) { return (this.waitTimeout = setTimeout(() => { this.show(0); }, 50)); } if (!this.waitPopup) { this.waitPopup = new BX.PopupWindow('sonet_common_wait_popup', window, { autoHide: true, lightShadow: true, zIndex: 2, content: BX.create('DIV', { props: { className: 'sonet-wait-cont' }, children: [ BX.create('DIV', { props: { className: 'sonet-wait-icon' } }), BX.create('DIV', { props: { className: 'sonet-wait-text' }, html: BX.message('SONET_EXT_COMMON_WAIT') }) ] }) }); } else { this.waitPopup.setBindElement(window); } this.waitPopup.show(); } hide() { if (this.waitTimeout) { clearTimeout(this.waitTimeout); this.waitTimeout = null; } if (this.waitPopup) { this.waitPopup.close(); } } }
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.26 |
proxy
|
phpinfo
|
Settings