Merge pull request #504 from ChrisBr/menu

Implements new admin menu structure #304
This commit is contained in:
Christian Bruckmayer 2014-11-12 11:13:16 +01:00
commit c0cdf3e6e5
3 changed files with 82 additions and 120 deletions

View file

@ -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());