diff options
author | Olivier Paroz <github@oparoz.com> | 2015-07-05 18:59:58 +0300 |
---|---|---|
committer | Olivier Paroz <github@oparoz.com> | 2015-07-05 18:59:58 +0300 |
commit | 9986ae98d1dee1c44a50df6b3574283c2a0a6550 (patch) | |
tree | ddd76c1b8cfe1d716acf321c60f81f868d7fd9b3 /js/galleryview.js | |
parent | 17b9d8e03af9041d1c627228a0a5e6f3179dfd8b (diff) |
Slideshow cleanup
* Back button support
* Cleanup all images when closed
* Remove duplicate events
* Properly clear previous/next image
Diffstat (limited to 'js/galleryview.js')
-rw-r--r-- | js/galleryview.js | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/js/galleryview.js b/js/galleryview.js index ca6f9d42..4af069e9 100644 --- a/js/galleryview.js +++ b/js/galleryview.js @@ -1,6 +1,6 @@ -/* global OC, t, $, _, Gallery */ -(function () { - +/* global Gallery, SlideShow */ +(function (OC, t, $, _) { + "use strict"; /** * Builds and updates the Gallery view * @@ -44,6 +44,8 @@ $('#sort-date-button').click(Gallery.sorter); $('#save #save-button').click(Gallery.showSaveForm); $('.save-form').submit(Gallery.saveForm); + Gallery.activeSlideShow = new SlideShow($('#slideshow')); + Gallery.activeSlideShow.init(false, null); } this.viewAlbum(albumPath); } @@ -272,4 +274,4 @@ }; Gallery.View = View; -})(); +})(OC, t, jQuery, _); |