diff options
author | Olivier Paroz <github@oparoz.com> | 2015-04-21 18:10:33 +0300 |
---|---|---|
committer | Olivier Paroz <github@oparoz.com> | 2015-04-21 18:10:33 +0300 |
commit | ee41a8733a1b9587425621e603dc5a0c7a1bcb16 (patch) | |
tree | 8c6b93a53ce010a1e62e44bfeee234a255b97526 /js | |
parent | db643a0fdd2fee89d4056eb69ead03b892f9796d (diff) |
Keep the browsing position in the Files app when exiting the slideshow
Fixes #126
Diffstat (limited to 'js')
-rw-r--r-- | js/galleryfileaction.js | 3 |
1 files changed, 2 insertions, 1 deletions
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); |