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-07-05 18:59:58 +0300
committerOlivier Paroz <github@oparoz.com>2015-07-05 18:59:58 +0300
commit9986ae98d1dee1c44a50df6b3574283c2a0a6550 (patch)
treeddd76c1b8cfe1d716acf321c60f81f868d7fd9b3 /js/galleryview.js
parent17b9d8e03af9041d1c627228a0a5e6f3179dfd8b (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.js10
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, _);