diff options
| author | Andrew Dolgov <fox@fakecake.org> | 2026-05-24 20:45:34 +0300 |
|---|---|---|
| committer | Andrew Dolgov <fox@fakecake.org> | 2026-05-24 20:45:34 +0300 |
| commit | 76b2eb6f191c535a428ee71c74c406dc9d206d9e (patch) | |
| tree | 677093cc43260fd7acc881da546031f04131b8c5 /src | |
| parent | ec163996772bb0239ebc1beeffe79deb83a17140 (diff) | |
| download | the-epube-76b2eb6f191c535a428ee71c74c406dc9d206d9e.tar.gz the-epube-76b2eb6f191c535a428ee71c74c406dc9d206d9e.tar.xz | |
do not accept raw html for book cells, remove unused method
Diffstat (limited to 'src')
| -rw-r--r-- | src/app.js | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/app.js b/src/app.js index ef29043..fb20538 100644 --- a/src/app.js +++ b/src/app.js @@ -175,8 +175,8 @@ class AppClass extends AppCommon { const data = await $.post("backend.php", {op: 'getinfo', id: bookId}); const comment = data.comment ? data.comment : 'No description available'; - $("#summary-modal .modal-title").html(data.title); - $("#summary-modal .book-summary").html(comment); + $("#summary-modal .modal-title").text(data.title); + $("#summary-modal .book-summary").text(comment); $("#summary-modal").modal(); @@ -184,8 +184,8 @@ class AppClass extends AppCommon { const data = await localforage.getItem("epube-book." + bookId); const comment = data.comment ? data.comment : 'No description available'; - $("#summary-modal .modal-title").html(data.title); - $("#summary-modal .book-summary").html(comment); + $("#summary-modal .modal-title").text(data.title); + $("#summary-modal .book-summary").text(comment); $("#summary-modal").modal(); } @@ -280,10 +280,6 @@ class AppClass extends AppCommon { } } - appCheckOffline() { - EpubeApp.setOffline(!this.isOnline); - } - updateOfflinePrompts() { const elems = $(".offline_dropitem"); |
