Commit 1f0a7291 by Daniel Bawag

WG-204 - Fixed Refresh button's functionality

parent badeb13a
......@@ -119,7 +119,8 @@ function TIFFViewer(xhr, TiffViewerImageName) {
if (localStorage.getItem("prev") == 1) {
Current_page = Current_page - 1;
} else {
if(Current_page != localStorage.getItem("display_counter") - 2 || Current_page == 0) {
console.log(Current_page + " | " + localStorage.getItem("display_counter"));
if(localStorage.getItem("submit") == 1 || Current_page == 0) {
Current_page = Current_page + 1;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment