[Libreoffice-commits] help.git: help3xsl/help.js

Gabriel Chiquini gabrielchiquini at hotmail.com
Wed Nov 29 20:37:57 UTC 2017


 help3xsl/help.js |   17 +++++++++++++++++
 1 file changed, 17 insertions(+)

New commits:
commit ec6a05cc524a17ff090eaa7e506d7b5452ab227b
Author: Gabriel Chiquini <gabrielchiquini at hotmail.com>
Date:   Fri Nov 17 10:46:39 2017 -0200

    Fixed UX bugs
    
    Clicking on tabs (Contents, Field, Index) now close the other ones
    Set focus into seach field clicking in those tabs
    
    Change-Id: I4b569aea86d4c5c441ce89dfa76f66844f0ebbc4
    Reviewed-on: https://gerrit.libreoffice.org/44902
    Reviewed-by: Olivier Hallot <olivier.hallot at libreoffice.org>
    Tested-by: Olivier Hallot <olivier.hallot at libreoffice.org>

diff --git a/help3xsl/help.js b/help3xsl/help.js
index ba7a4523b..2c230e91e 100644
--- a/help3xsl/help.js
+++ b/help3xsl/help.js
@@ -109,5 +109,22 @@ $(document).ready(function() {
             }
         }, 200);
     });
+
+    //maintain only one panel open
+    $('input[name="accordion-menu"]').on('change', function(){
+        $('input[name="accordion-menu"]').not(this).prop('checked', false);
+    });
+    //focus Google Search input clicking on Find panel
+    $('#accordion-2').on('change', function(){
+        if($(this).is(':checked')){
+            $('#gsc-i-id1').focus();
+        }
+    });
+    //focus index search input clicking on Index panel
+    $('#accordion-3').on('change', function(){
+        if($(this).is(':checked')){
+            $('#search-bar').focus();
+        }
+    });
 });
 /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */


More information about the Libreoffice-commits mailing list