|
53 | 53 | "jquery",
|
54 | 54 | "Magento_Ui/js/modal/prompt",
|
55 | 55 | "Magento_Ui/js/modal/alert",
|
56 |
| - "Magento_Ui/js/modal/confirm", |
57 | 56 | "extjs/ext-tree-checkbox",
|
58 | 57 | "prototype"
|
59 |
| - ], function(jQuery, prompt, alert, confirm){ |
| 58 | + ], function(jQuery, prompt, alert){ |
60 | 59 |
|
61 | 60 | //<![CDATA[
|
62 | 61 | var allowDragAndDrop = <?php /* @escapeNotVerified */ echo($block->getIsReadOnly() ? 'false' : 'true'); ?>;
|
|
223 | 222 | }
|
224 | 223 |
|
225 | 224 | if( editSet.currentNode && editSet.currentNode.attributes.cls == 'folder' ) {
|
226 |
| - confirm({ |
227 |
| - title: "<?php /* @escapeNotVerified */ echo __('Delete Group') ?>", |
228 |
| - content: '<?php echo $block->escapeJs(__('Are you sure you want to delete this group?')) ?>', |
229 |
| - actions: { |
230 |
| - confirm: function () { |
231 |
| - TreePanels.root.removeChild(editSet.currentNode); |
232 |
| - |
233 |
| - for( i in editSet.currentNode.childNodes ) { |
234 |
| - if( editSet.currentNode.childNodes[i].id ) { |
235 |
| - child = editSet.currentNode.childNodes[i]; |
236 |
| - newNode = new Ext.tree.TreeNode(child.attributes); |
237 |
| - |
238 |
| - if( child.attributes.is_user_defined == 1 ) { |
239 |
| - TreePanels.root2.appendChild(newNode); |
240 |
| - } |
241 |
| - } |
242 |
| - } |
243 |
| - |
244 |
| - editSet.req.removeGroups[editSet.currentNode.id] = editSet.currentNode.id; |
245 |
| - editSet.currentNode = false; |
| 225 | + TreePanels.root.removeChild(editSet.currentNode); |
| 226 | + |
| 227 | + for( i in editSet.currentNode.childNodes ) { |
| 228 | + if( editSet.currentNode.childNodes[i].id ) { |
| 229 | + child = editSet.currentNode.childNodes[i]; |
| 230 | + newNode = new Ext.tree.TreeNode(child.attributes); |
| 231 | + |
| 232 | + if( child.attributes.is_user_defined == 1 ) { |
| 233 | + TreePanels.root2.appendChild(newNode); |
246 | 234 | }
|
247 | 235 | }
|
248 |
| - }); |
| 236 | + } |
| 237 | + |
| 238 | + editSet.req.removeGroups[editSet.currentNode.id] = editSet.currentNode.id; |
| 239 | + editSet.currentNode = false; |
249 | 240 | }
|
250 | 241 | },
|
251 | 242 |
|
|
0 commit comments