mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2025-01-09 11:55:39 +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
|
// Side menu nav bar active selection
|
||||||
/** add active class and stay opened when selected */
|
/** add active class and stay opened when selected */
|
||||||
var url = window.location;
|
|
||||||
|
|
||||||
// for sidebar menu entirely but not cover treeview
|
// for sidebar menu entirely but not cover treeview
|
||||||
$('ul.nav-sidebar a').filter(function() {
|
$('ul.nav-sidebar a').filter(function() {
|
||||||
return this.href == url;
|
return this.href == window.location.href.split('?')[0];
|
||||||
}).addClass('active');
|
}).addClass('active');
|
||||||
|
|
||||||
// for treeview
|
// for treeview
|
||||||
$('ul.nav-treeview a').filter(function() {
|
$('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');
|
}).parentsUntil(".nav-sidebar > .nav-treeview").addClass('menu-open').prev('a').addClass('active');
|
||||||
|
Loading…
Reference in New Issue
Block a user