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/rospirotorg.ru/bitrix/js/yandex.market/ui/input/ |
Upload File : |
(function(BX, $, window) { var Plugin = BX.namespace('YandexMarket.Plugin'); var Input = BX.namespace('YandexMarket.Ui.Input'); var constructor = Input.IncomingUrlTest = Plugin.Base.extend({ defaults: { inputElement: 'input', url: null, site: null, modalWidth: 650, modalHeight: 500, lang: {}, langPrefix: 'YANDEX_MARKET_UI_USER_FIELD_INCOMING_URL_' }, activate: function() { var dialog = this.createDialog(); dialog.Show(); }, createDialog: function() { return new BX.CAdminDialog({ 'title': this.getLang('MODAL_TITLE'), 'draggable': true, 'resizable': true, 'buttons': [BX.CAdminDialog.btnClose], 'width': this.options.modalWidth, 'height': this.options.modalHeight, 'content_url': this.options.url, 'content_post': this.getDialogData(), }); }, getDialogData: function() { return { url: this.getTestingUrl(), site: this.options.site, }; }, getTestingUrl: function() { var input = this.getElement('input', this.$el, 'siblings'); return input.val(); }, }, { dataName: 'uiInputIncomingUrlTest' }); })(BX, jQuery, window);