]> git.sesse.net Git - remoteglot/commitdiff
Fix an issue where the Previous link would wrongly reappear.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Mon, 10 Nov 2014 23:57:32 +0000 (00:57 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Mon, 10 Nov 2014 23:57:32 +0000 (00:57 +0100)
www/js/remoteglot.js

index bf43403ef7a6b7a3420103320b95872a37770f02..a5cdc232a61ce3a6cfa2b90508411b467b4e6202 100644 (file)
@@ -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("<a href=\"javascript:prev_move();\">Previous</a></span>");