]> git.sesse.net Git - remoteglot/blobdiff - www/js/remoteglot.js
Fix an issue where the Previous link would wrongly reappear.
[remoteglot] / 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>");