summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ishtar_common/static/js/ishtar.js5
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('...');