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

This reverts commit 929cb6302d, reversing
changes made to 0418edddd9.
This commit is contained in:
Matt Scott
2023-02-18 09:04:37 -05:00
parent 35493fc218
commit e2ad3e2001
44 changed files with 4367 additions and 5435 deletions

View File

@ -287,18 +287,4 @@ 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');
}