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 20:49:50 +0300
committerOlivier Paroz <github@oparoz.com>2015-07-05 20:49:50 +0300
commit5ac3ed9f15bb1486be3906db70f35c66c541d2a8 (patch)
tree39f0ce4eb65a9a1a8e11f61b9683e49fd30416e7 /js/galleryview.js
parent808f5b214b802ddad5a28b246145c8d85a85bd53 (diff)
Fix slideshow template loading race condition
* Load the slideshow only when needed on the Files app * Load the slideshow at init time in the Gallery app
Diffstat (limited to 'js/galleryview.js')
-rw-r--r--js/galleryview.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/js/galleryview.js b/js/galleryview.js
index 4af069e9..a2b2d5ad 100644
--- a/js/galleryview.js
+++ b/js/galleryview.js
@@ -1,4 +1,4 @@
-/* global Gallery, SlideShow */
+/* global Gallery */
(function (OC, t, $, _) {
"use strict";
/**
@@ -44,8 +44,6 @@
$('#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);
}