Folder Sidebar
This commit is contained in:
+3
-1
@@ -118,7 +118,9 @@
|
||||
if (!e.target.closest) return;
|
||||
// Match both listing styles: table rows expose the file link inside
|
||||
// a .list-item row; thumbnail tiles are bare a.thumb-tile anchors.
|
||||
var anchor = e.target.closest('.list-item a, a.thumb-tile');
|
||||
// The left tree rail's file anchors (a.tree-file) join in too;
|
||||
// folder anchors there end in "/" and fall through to navigation.
|
||||
var anchor = e.target.closest('.list-item a, a.thumb-tile, aside.tree-sidebar a.tree-file');
|
||||
if (!anchor) return;
|
||||
var item = anchor.closest('.list-item');
|
||||
// Only intercept the primary file link, and only for files (not folders).
|
||||
|
||||
Reference in New Issue
Block a user