Добавление количества страниц книгам

This commit is contained in:
2026-01-23 01:31:50 +03:00
parent 1e0c3478a1
commit 7c3074e8fe
15 changed files with 152 additions and 21 deletions
+5
View File
@@ -180,6 +180,11 @@ $(document).ready(() => {
clone.querySelector(".book-title").textContent = book.title;
clone.querySelector(".book-authors").textContent =
book.authors.map((a) => a.name).join(", ") || "Автор неизвестен";
if (book.page_count && book.page_count > 0) {
const pageEl = clone.querySelector(".book-page-count");
pageEl.querySelector(".page-count-value").textContent = book.page_count;
pageEl.classList.remove("hidden");
}
clone.querySelector(".book-desc").textContent = book.description || "";
const statusConfig = getStatusConfig(book.status);