mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 14:47:41 +02:00
highlight current visibility option
This commit is contained in:
parent
6e0d7bb3cf
commit
8cc8f2c7fd
1 changed files with 3 additions and 1 deletions
|
@ -235,7 +235,7 @@
|
||||||
padding: 0px;
|
padding: 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dropdown-menu li:hover {
|
.dropdown-menu li.current {
|
||||||
background: #dcdcdc;
|
background: #dcdcdc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -470,6 +470,8 @@
|
||||||
|
|
||||||
// Click listener for toggling who can see me
|
// Click listener for toggling who can see me
|
||||||
$(".visibility-option").click(function() {
|
$(".visibility-option").click(function() {
|
||||||
|
$(".visibility-option").removeClass("current");
|
||||||
|
$(this).addClass("current");
|
||||||
myVisibility = $(this).data("visibility");
|
myVisibility = $(this).data("visibility");
|
||||||
var newButtonText = $(this).find("h5").text();
|
var newButtonText = $(this).find("h5").text();
|
||||||
$("#visibility-toggle").html(newButtonText + "<span class='glyphicon glyphicon-menu-down'></span>");
|
$("#visibility-toggle").html(newButtonText + "<span class='glyphicon glyphicon-menu-down'></span>");
|
||||||
|
|
Loading…
Reference in a new issue