mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Merge pull request #504 from ChrisBr/menu
Implements new admin menu structure #304
This commit is contained in:
commit
c0cdf3e6e5
3 changed files with 82 additions and 120 deletions
|
|
@ -105,31 +105,6 @@ $(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
|
||||
$siblings = $(this).siblings().find("ul:visible");
|
||||
$siblings.hide();
|
||||
$siblings.parent().find('span:nth-child(2)').toggleClass("fa-chevron-down fa-chevron-right");
|
||||
|
||||
//show this
|
||||
$(this).find("ul").show();
|
||||
$(this).find('span:nth-child(2)').toggleClass("fa-chevron-down fa-chevron-right");
|
||||
}
|
||||
});
|
||||
|
||||
$('a:contains("Add track")').click(function () {
|
||||
setTimeout(function () {
|
||||
$("div.nested-fields:last div:nth-of-type(2) input").val(get_color());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue