Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/gallery.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Paroz <github@oparoz.com>2015-04-21 18:10:33 +0300
committerOlivier Paroz <github@oparoz.com>2015-04-21 18:10:33 +0300
commitee41a8733a1b9587425621e603dc5a0c7a1bcb16 (patch)
tree8c6b93a53ce010a1e62e44bfeee234a255b97526 /js/galleryfileaction.js
parentdb643a0fdd2fee89d4056eb69ead03b892f9796d (diff)
Keep the browsing position in the Files app when exiting the slideshow
Fixes #126
Diffstat (limited to 'js/galleryfileaction.js')
-rw-r--r--js/galleryfileaction.js3
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);