Skip to content

Commit 799722c

Browse files
committed
Update filebrowser.js
1 parent 3e0196b commit 799722c

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

filebrowser.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2566,6 +2566,20 @@ function toggleSidebar(open) {
25662566
}
25672567

25682568

2569+
function deleteModFileInHTML(sha) {
2570+
2571+
const fileEl = fileWrapper.querySelector('.file.modified[sha="'+ sha +'"]');
2572+
2573+
if (fileEl) {
2574+
2575+
deleteModFile(sha);
2576+
fileEl.classList.remove('modified');
2577+
2578+
}
2579+
2580+
}
2581+
2582+
25692583
// when scrolled editor, save new scroll position
25702584

25712585
let editorScrollTimeout;

0 commit comments

Comments
 (0)