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:
authorDaniel Calviño Sánchez <danxuliu@gmail.com>2018-01-08 02:25:21 +0300
committerMorris Jobke <hey@morrisjobke.de>2018-01-22 19:46:59 +0300
commit714a6a2cc8fa243e01e09700d6efedf420311264 (patch)
tree5dcb6b2e898c41fed48b677f2a860f0c65864851
parentd587ed9208de886c4db5b6614ca21ef589f2dae5 (diff)
Hide the share drop down when closing the slideshowv13.0.0RC3
The share drop down is shared between the gallery and the slideshow. When the share button of the gallery is clicked the share drop down is shown only if it is not already being shown. However, if the slideshow is closed while the drop down is being shown the gallery considers that the drop down is being shown (even if it is not visible to the user), so clicking on the share button does nothing in that case. Now the drop down is explicitly hidden when the slideshow is closed to ensure that the share button of the gallery works as expected. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
-rw-r--r--js/slideshowcontrols.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/js/slideshowcontrols.js b/js/slideshowcontrols.js
index a09c71b2..a2745241 100644
--- a/js/slideshowcontrols.js
+++ b/js/slideshowcontrols.js
@@ -400,6 +400,9 @@
* @private
*/
_exit: function () {
+ if (Gallery.Share){
+ Gallery.Share.hideDropDown();
+ }
// Only modern browsers can manipulate history
if (history && history.replaceState) {