New admin menu

This commit is contained in:
Chrisbr 2014-05-22 18:19:07 +02:00
parent 29cd9d0132
commit 89fb059aaa
35 changed files with 209 additions and 170 deletions

View file

@ -70,6 +70,19 @@ $(function() {
$(".comment-reply").hide();
$(".user-details-popover").popover();
$("#comments-div").hide();
$( ".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("glyphicon-chevron-down glyphicon-chevron-right");
//show this
$(this).find("ul").show();
$(this).find('span:nth-child(2)').toggleClass("glyphicon-chevron-down glyphicon-chevron-right");
}
});
});
function word_count(text, divId, maxcount) {