mirror of
https://github.com/sissbruecker/linkding.git
synced 2025-08-08 03:08:29 +02:00
Fix several issues around browser back navigation (#825)
This commit is contained in:
@@ -4,8 +4,9 @@ class BulkEdit extends Behavior {
|
||||
constructor(element) {
|
||||
super(element);
|
||||
|
||||
this.active = false;
|
||||
this.active = element.classList.contains("active");
|
||||
|
||||
this.init = this.init.bind(this);
|
||||
this.onToggleActive = this.onToggleActive.bind(this);
|
||||
this.onToggleAll = this.onToggleAll.bind(this);
|
||||
this.onToggleBookmark = this.onToggleBookmark.bind(this);
|
||||
@@ -13,7 +14,11 @@ class BulkEdit extends Behavior {
|
||||
|
||||
this.init();
|
||||
// Reset when bookmarks are refreshed
|
||||
document.addEventListener("refresh-bookmark-list-done", () => this.init());
|
||||
document.addEventListener("refresh-bookmark-list-done", this.init);
|
||||
}
|
||||
|
||||
destroy() {
|
||||
document.removeEventListener("refresh-bookmark-list-done", this.init);
|
||||
}
|
||||
|
||||
init() {
|
||||
|
Reference in New Issue
Block a user