mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2024-11-08 14:40:27 +00:00
Updated client-side navigation matching to only compare the base path without the query string.
This commit is contained in:
parent
e960326a58
commit
761909f0f8
@ -291,14 +291,13 @@ function copy_otp_secret_to_clipboard() {
|
||||
|
||||
// Side menu nav bar active selection
|
||||
/** add active class and stay opened when selected */
|
||||
var url = window.location;
|
||||
|
||||
// for sidebar menu entirely but not cover treeview
|
||||
$('ul.nav-sidebar a').filter(function() {
|
||||
return this.href == url;
|
||||
return this.href == window.location.href.split('?')[0];
|
||||
}).addClass('active');
|
||||
|
||||
// for treeview
|
||||
$('ul.nav-treeview a').filter(function() {
|
||||
return this.href == url;
|
||||
return this.href == window.location.href.split('?')[0];
|
||||
}).parentsUntil(".nav-sidebar > .nav-treeview").addClass('menu-open').prev('a').addClass('active');
|
||||
|
Loading…
Reference in New Issue
Block a user