Browse Source

[fix] indicate visually active tab programmatically on the page Preferences - #350

Adam Tauber 4 years ago
parent
commit
3227695b0b

+ 5 - 0
searx/static/themes/oscar/js/searx.js

@@ -198,6 +198,11 @@ $(document).ready(function(){
             $(".btn-sm").addClass('btn-default');
         }
     });
+    $(".nav-tabs").click(function(a) {
+        var tabs = $(a.target).parents("ul");
+        tabs.children().attr("aria-selected", "false");
+        $(a.target).parent().attr("aria-selected", "true");
+    });
 });
 ;/**
  * searx is free software: you can redistribute it and/or modify

File diff suppressed because it is too large
+ 0 - 1
searx/static/themes/oscar/js/searx.min.js


+ 5 - 0
searx/static/themes/oscar/js/searx_src/element_modifiers.js

@@ -96,4 +96,9 @@ $(document).ready(function(){
             $(".btn-sm").addClass('btn-default');
         }
     });
+    $(".nav-tabs").click(function(a) {
+        var tabs = $(a.target).parents("ul");
+        tabs.children().attr("aria-selected", "false");
+        $(a.target).parent().attr("aria-selected", "true");
+    });
 });

Some files were not shown because too many files changed in this diff