From: Steinar H. Gunderson Date: Mon, 10 Nov 2014 23:57:32 +0000 (+0100) Subject: Fix an issue where the Previous link would wrongly reappear. X-Git-Url: https://git.sesse.net/?p=remoteglot;a=commitdiff_plain;h=bf646866821723c84ac275cab2314a43aed20d64;hp=bcae12d78459730f30039137cbdbe1cf8f490e5b Fix an issue where the Previous link would wrongly reappear. --- diff --git a/www/js/remoteglot.js b/www/js/remoteglot.js index bf43403..a5cdc23 100644 --- a/www/js/remoteglot.js +++ b/www/js/remoteglot.js @@ -749,7 +749,7 @@ var update_displayed_line = function() { $("#linenav").show(); $("#linemsg").hide(); - if (current_display_move == 0) { + if (current_display_move <= 0) { $("#prevmove").html("Previous"); } else { $("#prevmove").html("Previous");