fix: fix the escape string.

Signed-off-by: Pin-Yi Song <611077101@mail.nknu.edu.tw>
This commit is contained in:
Pin-Yi Song 2025-07-15 00:32:21 +08:00
parent e7d29a1286
commit d549a4b0fc
No known key found for this signature in database
GPG Key ID: 1F3EFB3D0967B93F

View File

@ -384,7 +384,7 @@ AJAX.registerOnload('table/structure.js', function () {
for (var i in data.columns) {
var theColumn = data.columns[i];
var $theRow = $rows
.find('input:checkbox[value=\'' + theColumn + '\']')
.find('input:checkbox[value=' + $.escapeSelector(theColumn) + ']')
.closest('tr');
// append the row for this column to the table
$fieldsTable.append($theRow);