This commit is contained in:
1 parent
2828ec48c8
commit
88c4beabcd
10 files changed
+234
-98
No files matched your search
@@ -1346,6 +1346,14 @@ function applyLayout(mode) {
|
||||
button.setAttribute("aria-pressed", String(mode !== "grid"));
|
||||
}
|
||||
|
||||
$("#exportLibrary").addEventListener("click", () => {
|
||||
const params = filterParams();
|
||||
params.delete("page");
|
||||
params.delete("per_page");
|
||||
params.set("format", "csv");
|
||||
window.location.href = `/api/export?${params}`;
|
||||
});
|
||||
|
||||
$("#layoutToggle").addEventListener("click", () => {
|
||||
const current = grid.dataset.layout || "grid";
|
||||
const mode = current === "grid" ? "list" : current === "list" ? "table" : "grid";
|
||||
|
||||
Reference in new issue
Block a user