Skip to content

TagSpaces is an offline, open source, document manager with tagging support

selectable prev/next

kristiyandd6b4aa8025972
diff --git a/data/js/fileopener.js b/data/js/fileopener.js
index 0b733a7dc..1ceccc0e2 100644
--- a/data/js/fileopener.js
+++ b/data/js/fileopener.js
@@ -84,9 +84,12 @@ define(function(require, exports, module) {
});
$('#nextFileButton').on("click", function() {
TSCORE.FileOpener.openFile(TSCORE.PerspectiveManager.getNextFile(_openedFilePath));
+ TSCORE.PerspectiveManager.selectFile(TSCORE.FileOpener.getOpenedFilePath());
});
$('#prevFileButton').on("click", function() {
TSCORE.FileOpener.openFile(TSCORE.PerspectiveManager.getPrevFile(_openedFilePath));
+ TSCORE.PerspectiveManager.selectFile(TSCORE.FileOpener.getOpenedFilePath());
+
});
$('#reloadFile').on("click", function() {
TSCORE.FileOpener.openFile(_openedFilePath);