修复遗漏的快捷键处理

This commit is contained in:
Chenx221 2024-02-15 14:36:30 +08:00
parent d9a3076c0f
commit fed77cf43e
Signed by: chenx221
GPG Key ID: D7A9EC07024C3021
2 changed files with 3 additions and 2 deletions

View File

@ -29,7 +29,7 @@ $this->registerCssFile('@web/css/home_style.css');
<h1><?= Html::encode($this->title) ?></h1> <h1><?= Html::encode($this->title) ?></h1>
<div> <div>
<?= Html::button('下载', ['class' => 'btn btn-outline-primary single-download-btn']) ?> <?= Html::button('下载', ['class' => 'btn btn-outline-primary single-download-btn']) ?>
<?= Html::button('下载', ['class' => 'btn btn-outline-primary batch-zip-download-btn']) ?> <?= Html::button('打包下载', ['class' => 'btn btn-outline-primary batch-zip-download-btn']) ?>
<?= Html::button('压缩', ['class' => 'btn btn-outline-primary batch-zip-btn']) ?> <?= Html::button('压缩', ['class' => 'btn btn-outline-primary batch-zip-btn']) ?>
<?= Html::button('解压', ['class' => 'btn btn-outline-primary unzip-btn']) ?> <?= Html::button('解压', ['class' => 'btn btn-outline-primary unzip-btn']) ?>
<?= Html::button('重命名', ['class' => 'btn btn-outline-primary single-rename-btn']) ?> <?= Html::button('重命名', ['class' => 'btn btn-outline-primary single-rename-btn']) ?>

View File

@ -39,7 +39,7 @@ $('#folder-input').on('change', function () {
}); });
$(document).on('click', '.offline-download-btn', function () { $(document).on('click', '.offline-download-btn', function () {
console.log('你点击了离线下载,但功能尚未实现'); console.log('离线下载功能尚未实现');
//TO DO //TO DO
}); });
@ -218,6 +218,7 @@ document.addEventListener('keydown', function (event) {
checkboxes[i].checked = selectAll.checked; checkboxes[i].checked = selectAll.checked;
checkboxes[i].closest('tr').classList.toggle('selected', selectAll.checked); checkboxes[i].closest('tr').classList.toggle('selected', selectAll.checked);
} }
updateButtons();
} }
}); });