|
|
@@ -737,8 +737,9 @@ $(document).ready(function() {
|
|
|
$(this).children(".btn-group-table").css("display","none");
|
|
|
});
|
|
|
$('body').on('click', "a[name=del-file]", function() {
|
|
|
- const del = [this.getAttribute('fid')];
|
|
|
- const filename = $('[name=filename]', $(this).closest('td'))[0].innerHTML;
|
|
|
+ const fid = this.getAttribute('fid');
|
|
|
+ const del = [fid];
|
|
|
+ const filename = $(`div[name=filename][fid=${fid}]`)[0].innerHTML;
|
|
|
filingObj.delFiles(del, null, `确认删除「${filename}」?`);
|
|
|
});
|
|
|
$('body').on('click', "a[name=edit-file]", function() {
|