fix settings and navigation
This commit is contained in:
@@ -380,6 +380,16 @@
|
||||
}
|
||||
});
|
||||
|
||||
// Right-click on folder in sidebar opens folder view in current page
|
||||
document.addEventListener('contextmenu', function(e) {
|
||||
const toggle = e.target.closest('.tree-toggle');
|
||||
if (!toggle) return;
|
||||
e.preventDefault();
|
||||
const path = toggle.getAttribute('data-path') || '';
|
||||
const url = '/folder/' + path;
|
||||
window.location.href = url;
|
||||
});
|
||||
|
||||
// Auto-expand active path
|
||||
function expandActivePath() {
|
||||
const activeItem = document.querySelector('.sidebar-item.active');
|
||||
|
||||
Reference in New Issue
Block a user