ui: cleanups in previous

This commit is contained in:
Franco Fichtner 2018-10-11 09:06:50 +02:00
parent 482492b8b1
commit e8c38e6710

View File

@ -106,14 +106,15 @@ $(document).ready(function () {
var events = {
mouseenter: function() {
$("#navigation.col-sidebar-left").css("width", "415px");
if ($(this).next("div").hasClass("in")) {
} else if ($(this).next().is("a")) {
$(this).nextAll("a").prevAll("a").addClass("collapsed").attr("aria-expanded","false");
$(this).nextAll("div").prevAll("div").removeClass("in").attr("aria-expanded","false");
} else {
$(this).trigger("click");
}
},
if ($(this).next("div").hasClass("in")) {
/* no action needed */
} else if ($(this).next().is("a")) {
$(this).nextAll("a").prevAll("a").addClass("collapsed").attr("aria-expanded","false");
$(this).nextAll("div").prevAll("div").removeClass("in").attr("aria-expanded","false");
} else {
$(this).trigger("click");
}
},
mouseleave: function() {
$("#navigation.col-sidebar-left").css("width", "70px");
},