texinfo-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[no subject]


From: Gavin D. Smith
Date: Wed, 30 Nov 2022 13:36:42 -0500 (EST)

branch: old/qt-info
commit c685b2828fcecff6624455e8319782eb1c9092b4
Author: Gavin Smith <gavinsmith0123@gmail.com>
AuthorDate: Mon Apr 15 19:52:28 2019 +0100

    Fix up pointer to Top node.
    
    * js/info.js (updater) <"navigate">
    Check if linkid is Top and if it is, change it to "index".
    This makes the "u" key work again if we are going up to the Top
    node, since we do not call fix_links in on_load any more.
---
 ChangeLog  | 11 ++++++++++-
 js/info.js |  6 ++++++
 2 files changed, 16 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index 7df7e87e70..707f04a758 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,13 @@
-2019-04-13  Gavin Smith  <gavinsmith0123@gmail.com>
+2019-04-15  Gavin Smith  <gavinsmith0123@gmail.com>
+
+       Fix up pointer to Top node.
+
+       * js/info.js (updater) <"navigate">
+       Check if linkid is Top and if it is, change it to "index".
+       This makes the "u" key work again if we are going up to the Top 
+       node, since we do not call fix_links in on_load any more.
+
+2019-04-15  Gavin Smith  <gavinsmith0123@gmail.com>
 
        Remove a parameter of the Store object.
 
diff --git a/js/info.js b/js/info.js
index 033db12409..ad9d6a4cfc 100644
--- a/js/info.js
+++ b/js/info.js
@@ -300,6 +300,12 @@ var user_config = window["INFO_CONFIG"];
             return state;
           else
             {
+              if (linkid === "Top")
+                {
+                  /* This if the link is coming from a file that has not
+                     had fix_links called on it. */
+                  linkid = config.TOP_ID;
+                }
               res.current = linkid;
               res.history = action.history;
               res.text_input = null;



reply via email to

[Prev in Thread] Current Thread [Next in Thread]