remove js hack on media type menu links
This commit is contained in:
parent
7c1bea379c
commit
761a8c923e
2 changed files with 2 additions and 11 deletions
|
@ -3720,11 +3720,8 @@ button.btn-icon-text > i.icon-white {
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dashboard_sub_nav {
|
.media_type_selector.dashboard_sub_nav a {
|
||||||
padding: 0px 0px 0px 10px;
|
padding-left: 20px;
|
||||||
-webkit-box-sizing: border-box;
|
|
||||||
-moz-box-sizing: border-box;
|
|
||||||
box-sizing: border-box;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.wrapper {
|
.wrapper {
|
||||||
|
|
|
@ -131,12 +131,6 @@ AIRTIME = (function(AIRTIME) {
|
||||||
selected.parent().addClass("selected");
|
selected.parent().addClass("selected");
|
||||||
$("#library_filter").text(selected.text());
|
$("#library_filter").text(selected.text());
|
||||||
|
|
||||||
// Slightly hacky way of triggering the click event when it's outside of the anchor text
|
|
||||||
$(".media_type_selector").on("click", function() {
|
|
||||||
// Need get(0) here so we don't create a stack overflow by recurring the click on the parent
|
|
||||||
$(this).find("a").get(0).click();
|
|
||||||
});
|
|
||||||
|
|
||||||
$(window).on('hashchange', function() {
|
$(window).on('hashchange', function() {
|
||||||
var selected = $("a[href$='"+location.hash+"']"),
|
var selected = $("a[href$='"+location.hash+"']"),
|
||||||
dashboardLink = $(".media_type_selector:first"),
|
dashboardLink = $(".media_type_selector:first"),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue