Skip to content

Commit 3cb6d36

Browse files
Merge MAGETWO-92181 into 2.2.7-bugfixes-251018
2 parents 8e5f00f + 42a4d79 commit 3cb6d36

File tree

1 file changed

+26
-1
lines changed
  • app/code/Magento/Catalog/view/adminhtml/templates/catalog/product/attribute/set

1 file changed

+26
-1
lines changed

app/code/Magento/Catalog/view/adminhtml/templates/catalog/product/attribute/set/main.phtml

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,20 +187,37 @@
187187
if( config[i].children ) {
188188
for( j in config[i].children ) {
189189
if(config[i].children[j].id) {
190+
190191
newNode = new Ext.tree.TreeNode(config[i].children[j]);
192+
193+
if (typeof newNode.ui.onTextChange === 'function') {
194+
newNode.ui.onTextChange = function (_3, _4, _5) {
195+
if (this.rendered) {
196+
this.textNode.innerText = _4;
197+
}
198+
}
199+
}
200+
}
191201
node.appendChild(newNode);
192202
newNode.addListener('click', editSet.unregister);
193203
}
194204
}
195205
}
196206
}
197207
}
198-
}
208+
199209

200210
editSet = function() {
201211
return {
202212
register : function(node) {
203213
editSet.currentNode = node;
214+
if (typeof node.ui.onTextChange === 'function') {
215+
node.ui.onTextChange = function (_3, _4, _5) {
216+
if (this.rendered) {
217+
this.textNode.innerText = _4;
218+
}
219+
}
220+
}
204221
},
205222

206223
unregister : function() {
@@ -293,6 +310,14 @@
293310
allowDrag : true
294311
});
295312

313+
if (typeof newNode.ui.onTextChange === 'function') {
314+
newNode.ui.onTextChange = function (_3, _4, _5) {
315+
if (this.rendered) {
316+
this.textNode.innerText = _4;
317+
}
318+
}
319+
}
320+
296321
TreePanels.root.appendChild(newNode);
297322
newNode.addListener('beforemove', editSet.groupBeforeMove);
298323
newNode.addListener('beforeinsert', editSet.groupBeforeInsert);

0 commit comments

Comments
 (0)