diff options
author | Olivier Paroz <github@oparoz.com> | 2016-06-19 03:49:28 +0300 |
---|---|---|
committer | Olivier Paroz <github@oparoz.com> | 2016-06-19 14:32:45 +0300 |
commit | 61920fd80f0885bb51069d72e739a45f45f92549 (patch) | |
tree | da94cffee1fd836c23cfa9697bb649c851385bd1 | |
parent | 70de06213b69c03d9b9db231d611d996f4b8e086 (diff) |
Init the slideshow before getting filesv9.1.0RC1
Fixes #679
(cherry picked from commit dcc0d57)
-rw-r--r-- | js/app.js | 21 |
1 files changed, 10 insertions, 11 deletions
@@ -28,19 +28,18 @@ $(document).ready(function () { .then(function (config) { Gallery.config = new Gallery.Config(config); var currentLocation = window.location.href.split('#')[1] || ''; - Gallery.getFiles(currentLocation).then(function () { - Gallery.activeSlideShow = new SlideShow(); - $.when( - Gallery.activeSlideShow.init( - false, - null, - Gallery.config.galleryFeatures - )) - .then(function () { + Gallery.activeSlideShow = new SlideShow(); + $.when( + Gallery.activeSlideShow.init( + false, + null, + Gallery.config.galleryFeatures + )) + .then(function () { + Gallery.getFiles(currentLocation).then(function () { window.onhashchange(); }); - - }); + }); }); $(document).click(function () { |