mirror of
https://github.com/searxng/searxng.git
synced 2024-11-19 19:00:10 +01:00
[fix] indicate visually active tab programmatically on the page Preferences - #350
This commit is contained in:
parent
4829a76aae
commit
3227695b0b
@ -198,6 +198,11 @@ $(document).ready(function(){
|
|||||||
$(".btn-sm").addClass('btn-default');
|
$(".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
|
* searx is free software: you can redistribute it and/or modify
|
||||||
|
4
searx/static/themes/oscar/js/searx.min.js
vendored
4
searx/static/themes/oscar/js/searx.min.js
vendored
File diff suppressed because one or more lines are too long
@ -96,4 +96,9 @@ $(document).ready(function(){
|
|||||||
$(".btn-sm").addClass('btn-default');
|
$(".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");
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user