|
@@ -7,7 +7,7 @@
|
|
|
</div>
|
|
|
<div class="modal-body">
|
|
|
<h6 id="del-node-hint">确认删除「当前节点及子项」?</h6>
|
|
|
- <h6>删除后,数据无法恢复,请谨慎操作。</h6>
|
|
|
+ <h6 id="show-del-hint">删除后,数据无法恢复,请谨慎操作。</h6>
|
|
|
</div>
|
|
|
<div class="modal-footer">
|
|
|
<button type="button" class="btn btn-sm btn-danger" id="del-node-ok" data-dismiss="modal">确定删除</button>
|
|
@@ -17,12 +17,17 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<script>
|
|
|
- const deleteAfterHint = function (fun, hint = '') {
|
|
|
+ const deleteAfterHint = function (fun, hint = '', show = true) {
|
|
|
$('#del-node').modal('show');
|
|
|
$('#del-node-ok').bind('click', fun);
|
|
|
if (hint) $('#del-node-hint').html(hint);
|
|
|
+ if (show) {
|
|
|
+ $('#show-del-hint').show();
|
|
|
+ } else {
|
|
|
+ $('#show-del-hint').hide();
|
|
|
+ }
|
|
|
$('#del-node').bind('hidden.bs.modal', function () {
|
|
|
$('#del-node-ok').unbind('click');
|
|
|
});
|
|
|
}
|
|
|
-</script>
|
|
|
+</script>
|