|
@@ -181,9 +181,8 @@ $(document).ready(function() {
|
|
|
return true;
|
|
|
},
|
|
|
beforeRemove: function(key, node, isCancel) {
|
|
|
- filingObj.delFiling(node, function() {
|
|
|
- $('#del-filing').modal('hide');
|
|
|
- });
|
|
|
+ filingObj.deleteNode = node;
|
|
|
+ $('#del-filing').modal('show');
|
|
|
return false;
|
|
|
},
|
|
|
beforeDrop: function(key, nodes, target, moveType, isCopy) {
|
|
@@ -230,6 +229,13 @@ $(document).ready(function() {
|
|
|
if (!filingObj.curFiling) return;
|
|
|
filingObj.addChildFiling(filingObj.curFiling);
|
|
|
});
|
|
|
+ $('#del-filing-ok').click(() => {
|
|
|
+ if (!filingObj.deleteNode) return;
|
|
|
+ filingObj.delFiling(filingObj.deleteNode, function() {
|
|
|
+ $('#del-filing').modal('hide');
|
|
|
+ delete filingObj.deleteNode;
|
|
|
+ });
|
|
|
+ });
|
|
|
|
|
|
class MultiObj {
|
|
|
constructor(setting) {
|