diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-12-26 12:10:53 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-01-11 17:30:46 +0100 |
commit | d4fa2de2b569cc2b8eff1cd279420299cf6686f2 (patch) | |
tree | fb2b81629824fa8c19e987bbace377f0ed01d909 | |
parent | 43ce91e8e3c76416e20327d13cd983c83dafe3c4 (diff) | |
download | Ishtar-d4fa2de2b569cc2b8eff1cd279420299cf6686f2.tar.bz2 Ishtar-d4fa2de2b569cc2b8eff1cd279420299cf6686f2.zip |
Table gallery: pagination fix
-rw-r--r-- | ishtar_common/static/js/ishtar.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ishtar_common/static/js/ishtar.js b/ishtar_common/static/js/ishtar.js index 03b9efb78..04957d7a2 100644 --- a/ishtar_common/static/js/ishtar.js +++ b/ishtar_common/static/js/ishtar.js @@ -1042,8 +1042,11 @@ var render_gallery = function(data_table, table_name, nb_select){ } idx_page += 1; } - if (page_total > 6){ + if (page_total > 5){ html += render_paginate_button('...'); + html += render_paginate_button(page_total, page_current); + } else if (idx_page == page_total) { + html += render_paginate_button(idx_page, page_current); } } else { html += render_paginate_button('...'); |