From ee41a8733a1b9587425621e603dc5a0c7a1bcb16 Mon Sep 17 00:00:00 2001 From: Olivier Paroz Date: Tue, 21 Apr 2015 17:10:33 +0200 Subject: Keep the browsing position in the Files app when exiting the slideshow Fixes #126 --- js/galleryfileaction.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'js/galleryfileaction.js') diff --git a/js/galleryfileaction.js b/js/galleryfileaction.js index 2c1f1752..d792817a 100644 --- a/js/galleryfileaction.js +++ b/js/galleryfileaction.js @@ -93,7 +93,8 @@ var galleryFileAction = { } var slideShow = new SlideShow($('#slideshow'), images); slideShow.onStop = function () { - location.hash = ''; + history.pushState("", document.title, + window.location.pathname + window.location.search); }; slideShow.init(); slideShow.show(start); -- cgit v1.2.3