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/field/param/ |
Upload File : |
(function(BX, $, window) { var Reference = BX.namespace('YandexMarket.Field.Reference'); var Param = BX.namespace('YandexMarket.Field.Param'); var Source = BX.namespace('YandexMarket.Source'); var constructor = Param.NodeCollection = Param.TagCollection.extend({ defaults: { itemElement: '.js-param-node-collection__item', itemAddHolderElement: '.js-param-node-collection__item-add-holder', itemAddElement: '.js-param-node-collection__item-add', itemDeleteElement: '.js-param-node-collection__item-delete' }, bind: function() { this.callParent('bind', constructor); this.handleLinkedChange(true); }, unbind: function() { this.handleLinkedChange(false); this.callParent('unbind', constructor); }, handleLinkedChange: function(dir) { this.$el[dir ? 'on' : 'off']('FieldParamNodeLinkedChange', $.proxy(this.onLinkedChange, this)); }, onLinkedChange: function(evt, data) { this.callItemList(function(itemInstance) { if (itemInstance === data.node) { return; } itemInstance.syncLinked(data.source, data.field); }); }, toggleItemDeleteView: function() { // nothing }, preselect: function() { this.callItemList('preselect'); }, getItemPlugin: function() { return Param.Node; } }, { dataName: 'FieldParamNode' }); })(BX, jQuery, window);