mirror of
https://gitlab.com/TheGamecraft/c-cms.git
synced 2026-04-23 19:39:10 -04:00
April 9 update
This commit is contained in:
12
public/js/app.js
vendored
12
public/js/app.js
vendored
@@ -1,4 +1,16 @@
|
||||
extendSidebar();
|
||||
|
||||
function navigate(url)
|
||||
{
|
||||
window.location.href = window.location+'/'+url;
|
||||
}
|
||||
|
||||
function extendSidebar()
|
||||
{
|
||||
let foo = $('.nav-item.active');
|
||||
if (foo.attr('parent'))
|
||||
{
|
||||
$('#'+foo.attr('parent')).collapse('show');
|
||||
$('#link-'+foo.attr('parent')).addClass('active');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user