mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 17:10:12 +01:00
This commit is contained in:
parent
29fc04e4a4
commit
47d79042fd
3 changed files with 11 additions and 1 deletions
|
|
@ -760,6 +760,11 @@ export class Files extends Model {
|
|||
const removeElement = this.closeElement.querySelector(`li[data-url="${data.data.box}"]`);
|
||||
if (removeElement) {
|
||||
removeElement.remove();
|
||||
const counterElement = this.closeElement.querySelector(".counter");
|
||||
counterElement.textContent = (parseInt(counterElement.textContent) - 1).toString();
|
||||
if (counterElement.textContent === "0") {
|
||||
counterElement.classList.add("fn__none");
|
||||
}
|
||||
}
|
||||
}
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue