texinfo-commits
[Top][All Lists]
Advanced

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

[no subject]


From: Per Bothner
Date: Thu, 29 Apr 2021 11:52:09 -0400 (EDT)

branch: master
commit acf770d56a40b314a1b4ff37c5500953e00dad2c
Author: Per Bothner <per@bothner.com>
AuthorDate: Thu Apr 29 08:51:49 2021 -0700

    js/info.js (Text_input.keyup): At end hide sidebar if narrow.
---
 ChangeLog  | 2 ++
 js/info.js | 5 ++++-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index 4b2e78f..96ec779 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2021-04-29  Per Bothner  <per@bothner.com>
 
+       * js/info.js (Text_input.keyup): At end hide sidebar if narrow.
+
        * js/info.js (Sidebar.render): Fix initial rendering.
 
        * js/info.css: Style hide-sidebar buttom vertically.
diff --git a/js/info.js b/js/info.js
index 5b39c86..c5a495d 100644
--- a/js/info.js
+++ b/js/info.js
@@ -553,7 +553,10 @@
           {
             var linkid = this.data[this.input.value];
             if (linkid)
-              store.dispatch (actions.set_current_url (linkid));
+              {
+                hide_sidebar_if_narrow ();
+                store.dispatch (actions.set_current_url (linkid));
+              }
           }
         event.stopPropagation ();
       }).bind (this));



reply via email to

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