%PDF- %PDF-
Server IP : 37.220.80.31 / Your IP : 3.15.218.169 Web Server : Apache/2.4.52 (Ubuntu) System : Linux 3051455-guretool.twc1.net 5.15.0-107-generic #117-Ubuntu SMP Fri Apr 26 12:26:49 UTC 2024 x86_64 User : www-root ( 1010) PHP Version : 7.4.33 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, MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/www-root/data/www/dev.artlot24.ru/bitrix/components/bitrix/main.field.url/templates/main.view/ |
Upload File : |
this.BX = this.BX || {}; this.BX.Mobile = this.BX.Mobile || {}; this.BX.Mobile.Field = this.BX.Mobile.Field || {}; (function (exports,main_core) { 'use strict'; var BX = window.BX, BXMobileApp = window.BXMobileApp; var nodeUrl = function () { var nodeUrl = function nodeUrl(node, container) { this.node = node; this.container = container; this.nodeLink = this.node.previousElementSibling; this.click = BX.delegate(this.click, this); this.callback = BX.delegate(this.callback, this); BX.bind(this.container, 'click', this.click); }; nodeUrl.prototype = { click: function click(e) { if (e.toElement.tagName !== 'A') { this.show(); return BX.PreventDefault(e); } }, show: function show() { window.app.exec('showPostForm', { attachButton: { items: [] }, attachFileSettings: {}, attachedFiles: [], extraData: {}, mentionButton: {}, smileButton: {}, message: { text: BX.util.htmlspecialcharsback(this.nodeLink.value) }, okButton: { callback: this.callback, name: main_core.Loc.getMessage('interface_form_save') }, cancelButton: { callback: function callback() {}, name: main_core.Loc.getMessage('interface_form_cancel') } }); }, callback: function callback(data) { data.text = BX.util.htmlspecialchars(data.text) || ''; if (data.text === '') { this.node.textContent = this.nodeLink.getAttribute('placeholder'); this.node.setAttribute('href', '#'); } else { this.node.textContent = data.text; if (this.checkUrl(data.text)) { this.node.setAttribute('href', data.text); } else { this.node.setAttribute('href', 'http://' + data.text); } } this.nodeLink.value = data.text; BX.onCustomEvent(this, 'onChange', [this, this.nodeLink]); }, checkUrl: function checkUrl(url) { return /^(callto:|mailto:|https:\/\/|http:\/\/)/i.test(url); } }; return nodeUrl; }(); window.app.exec('enableCaptureKeyboard', true); BX.Mobile.Field.Url = function (params) { this.init(params); }; BX.Mobile.Field.Url.prototype = { __proto__: BX.Mobile.Field.prototype, bindElement: function bindElement(node) { var result = null; if (BX(node)) { result = new nodeUrl(node, node.parentElement); } return result; } }; }((this.BX.Mobile.Field.Url = this.BX.Mobile.Field.Url || {}),BX)); //# sourceMappingURL=mobile.js.map