From 67d56f1d03a771e80c4237b37005611c9a5ce319 Mon Sep 17 00:00:00 2001
From: Matthieu Gautier
Date: Fri, 30 Nov 2018 16:01:27 +0100
Subject: [PATCH] Remove contentManager pagination.
The pagination was added as a workaround to a too slow display of
the content.
Now that with commit 4cbf001 we are displaying the icons async, the
pagination is no more usefull.
---
resources/texts/_contentManager.html | 13 -------------
src/contentmanager.cpp | 12 +++++-------
src/contentmanager.h | 21 ---------------------
3 files changed, 5 insertions(+), 41 deletions(-)
diff --git a/resources/texts/_contentManager.html b/resources/texts/_contentManager.html
index e7f3b89..b361473 100644
--- a/resources/texts/_contentManager.html
+++ b/resources/texts/_contentManager.html
@@ -66,12 +66,6 @@ function init() {
openBook : function(book) {
contentManager.openBook(book.id, function() {});
},
- changePage : function(delta) {
- var newPage = contentManager.currentPage+delta;
- if (newPage < 0) newPage = 0;
- if (newPage > contentManager.nbPages-1) newPage = contentManager.nbPages-1;
- contentManager.currentPage = newPage;
- },
downloadBook : function(book) {
contentManager.downloadBook(book.id, function(did) {
book.downloadId = did;
@@ -218,13 +212,6 @@ button {
{{ book.description }}
-