File manager - Edit - /home/c14075/dragmet-ural.ru/www/bitrix/components/bitrix/main.field.integer/templates/main.view/mobile.js
Back
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 nodeInteger = function () { var nodeInteger = function nodeInteger(node, container) { this.node = node; this.container = container; this.click = BX.delegate(this.click, this); this.callback = BX.delegate(this.callback, this); BX.bind(this.container, 'click', this.click); }; nodeInteger.prototype = { click: function click(e) { 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.node.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) || ''; this.node.value = data.text; if (data.text == '') { this.container.innerHTML = "<span class=\"placeholder\">".concat(this.node.getAttribute('placeholder'), "</span>"); } else { this.container.innerHTML = data.text; } BX.onCustomEvent(this, 'onChange', [this, this.node]); } }; return nodeInteger; }(); window.app.exec('enableCaptureKeyboard', true); BX.Mobile.Field.Integer = function (params) { this.init(params); }; BX.Mobile.Field.Integer.prototype = { __proto__: BX.Mobile.Field.prototype, bindElement: function bindElement(node) { var result = null; if (BX(node)) { result = new nodeInteger(node, BX("".concat(node.id, "_container"))); } return result; } }; }((this.BX.Mobile.Field.Integer = this.BX.Mobile.Field.Integer || {}),BX)); //# sourceMappingURL=mobile.js.map
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.24 |
proxy
|
phpinfo
|
Settings