mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Shows dropdown on load if path correspondent to link
This commit is contained in:
parent
b97b48b1eb
commit
61606d3932
1 changed files with 12 additions and 0 deletions
|
|
@ -71,6 +71,18 @@ $(function() {
|
|||
$(".user-details-popover").popover();
|
||||
$("#comments-div").hide();
|
||||
|
||||
$(document).ready(function () {
|
||||
var path = window.location.pathname;
|
||||
$(".myAccordion ul").each(function () {
|
||||
$this = $(this);
|
||||
$this.find("a").each(function () {
|
||||
if ($(this).attr("href") == path) {
|
||||
$this.show();
|
||||
}
|
||||
})
|
||||
});
|
||||
});
|
||||
|
||||
$( ".myAccordion" ).mouseover(function() {
|
||||
if(!$(this).find("ul").is(':visible')){
|
||||
//Hide all except this
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue