File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed
app/code/Magento/Catalog/view/adminhtml/templates/catalog/product/attribute/set Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change 187
187
for( j in config[i].children ) {
188
188
if(config[i].children[j].id) {
189
189
newNode = new Ext.tree.TreeNode(config[i].children[j]);
190
+
191
+ if (typeof newNode.ui.onTextChange === 'function') {
192
+ newNode.ui.onTextChange = function (_3, _4, _5) {
193
+ if (this.rendered) {
194
+ this.textNode.innerText = _4;
195
+ }
196
+ }
197
+ }
198
+
190
199
node.appendChild(newNode);
191
200
newNode.addListener('click', editSet.unregister);
192
201
}
199
208
editSet = function() {
200
209
return {
201
210
register : function(node) {
211
+ if (typeof node.ui.onTextChange === 'function') {
212
+ node.ui.onTextChange = function (_3, _4, _5) {
213
+ if (this.rendered) {
214
+ this.textNode.innerText = _4;
215
+ }
216
+ }
217
+ }
218
+
202
219
editSet.currentNode = node;
203
220
},
204
221
271
288
allowDrop : true,
272
289
allowDrag : true
273
290
});
291
+
292
+ if (typeof newNode.ui.onTextChange === 'function') {
293
+ newNode.ui.onTextChange = function (_3, _4, _5) {
294
+ if (this.rendered) {
295
+ this.textNode.innerText = _4;
296
+ }
297
+ }
298
+ }
299
+
274
300
TreePanels.root.appendChild(newNode);
275
301
newNode.addListener('beforemove', editSet.groupBeforeMove);
276
302
newNode.addListener('beforeinsert', editSet.groupBeforeInsert);
You can’t perform that action at this time.
0 commit comments