1
0
Fork 0

fixed dropdown item selection and dropdown hide event of user dropdown

This commit is contained in:
Guido Schwab 2014-02-20 20:03:26 +01:00
parent 291011a12b
commit b7d1eebfd3
5 changed files with 6 additions and 11 deletions

View File

@ -60,17 +60,7 @@
},
hideDropdown: function (e) {
console.log(e.type);
var tab = e.target || e.srcElement;
var navigateTo = tab.id;
if (navigateTo === "") {
tab = $(tab).closest(".user-dropdown-menu");
navigateTo = tab.attr("id");
}
if (navigateTo === "user" || navigateTo === "user_dropdown" || navigateTo === "userimage" ) {
$("#user_dropdown").hide();
return;
}
$("#user_dropdown").hide();
},
removeAllNotifications: function () {

View File

@ -27,6 +27,9 @@ ul.navlist {
> li:hover {
background-color: $c_positive;
}
li.dropdown-item {
margin-left: 0px;
}
}
a.tab {

View File

@ -204,6 +204,8 @@ ul.navlist {
ul.navlist li.dropdown-item:hover,
ul.navlist > li:hover {
background-color: #8aa051; }
ul.navlist li.dropdown-item {
margin-left: 0px; }
a.tab {
padding-top: 8px;