修复因表格结构改变导致的原文件名获取失败问题

This commit is contained in:
Chenx221 2024-02-16 11:57:01 +08:00
parent c7a16e82c5
commit 7459ef24b8
Signed by: chenx221
GPG Key ID: D7A9EC07024C3021

View File

@ -1,6 +1,6 @@
$(document).on('click', '.rename-btn', function () {
var relativePath = $(this).attr('value');
var fileName = $(this).closest('tr').find('td:first').text().trim();
var fileName = $(this).closest('tr').find('td:eq(1)').text().trim();
$('#renameRelativePath').val(relativePath);
$('#renameform-newname').val(fileName);
$('#renameModal').modal('show');