File tree Expand file tree Collapse file tree 1 file changed +26
-1
lines changed
app/code/Magento/Catalog/view/adminhtml/templates/catalog/product/attribute/set Expand file tree Collapse file tree 1 file changed +26
-1
lines changed Original file line number Diff line number Diff line change 187
187
if( config[i].children ) {
188
188
for( j in config[i].children ) {
189
189
if(config[i].children[j].id) {
190
+
190
191
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
+ }
191
201
node.appendChild(newNode);
192
202
newNode.addListener('click', editSet.unregister);
193
203
}
194
204
}
195
205
}
196
206
}
197
207
}
198
- }
208
+
199
209
200
210
editSet = function() {
201
211
return {
202
212
register : function(node) {
203
213
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
+ }
204
221
},
205
222
206
223
unregister : function() {
293
310
allowDrag : true
294
311
});
295
312
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
+
296
321
TreePanels.root.appendChild(newNode);
297
322
newNode.addListener('beforemove', editSet.groupBeforeMove);
298
323
newNode.addListener('beforeinsert', editSet.groupBeforeInsert);
You can’t perform that action at this time.
0 commit comments