diff options
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"); |
