Revert "Revert "Merge pull request #1371 from AgentTNT/AdminLTE-Upgrade""

This reverts commit e2ad3e2001.
This commit is contained in:
Matt Scott
2023-02-18 11:04:14 -05:00
parent 839c1ecf17
commit 516bc52c2f
44 changed files with 5349 additions and 4296 deletions

View File

@ -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');