mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2025-06-16 13:06:06 +00:00
Initial go at upgrading from Bootstap v3 to v4 and to AdminLTE v3.2.0
This commit is contained in:
@ -287,4 +287,18 @@ function copy_otp_secret_to_clipboard() {
|
||||
navigator.clipboard.writeText(copyBox.value);
|
||||
$("#copy_tooltip").css("visibility", "visible");
|
||||
setTimeout(function(){ $("#copy_tooltip").css("visibility", "collapse"); }, 2000);
|
||||
}
|
||||
}
|
||||
|
||||
// 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;
|
||||
}).addClass('active');
|
||||
|
||||
// for treeview
|
||||
$('ul.nav-treeview a').filter(function() {
|
||||
return this.href == url;
|
||||
}).parentsUntil(".nav-sidebar > .nav-treeview").addClass('menu-open').prev('a').addClass('active');
|
||||
|
Reference in New Issue
Block a user