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-10 20:47:36 +0300
committerOlivier Paroz <github@oparoz.com>2015-07-10 20:47:36 +0300
commit6d05c6e743e8fcca691ffe20d1784293ae36cffa (patch)
treef64719fe8dd1935caac89c74284d3f1af6a4a06b /js/gallerybutton.js
parent1ff032a143551a8e3c21cd8512aa420c31c0b0dc (diff)
More JS harmonisation
Diffstat (limited to 'js/gallerybutton.js')
-rw-r--r--js/gallerybutton.js10
1 files changed, 7 insertions, 3 deletions
diff --git a/js/gallerybutton.js b/js/gallerybutton.js
index 3f23f7c8..1ac46650 100644
--- a/js/gallerybutton.js
+++ b/js/gallerybutton.js
@@ -5,6 +5,7 @@ GalleryButton.button = {};
GalleryButton.url = null;
GalleryButton.onFileListUpdated = function () {
+ "use strict";
var fileList;
if (GalleryButton.isPublic) {
@@ -17,18 +18,21 @@ GalleryButton.onFileListUpdated = function () {
};
GalleryButton.buildGalleryUrl = function (dir) {
+ "use strict";
var params = {};
var tokenPath = '';
- var token = ($('#sharingToken').val()) ? $('#sharingToken').val() : false;
+ var sharingTokenElement = $('#sharingToken');
+ var token = (sharingTokenElement.val()) ? sharingTokenElement.val() : false;
if (token) {
params.token = token;
tokenPath = 's/{token}';
}
- GalleryButton.url = OC.generateUrl('apps/galleryplus/' + tokenPath, params) + '#' + encodeURIComponent(dir);
+ GalleryButton.url =
+ OC.generateUrl('apps/galleryplus/' + tokenPath, params) + '#' + encodeURIComponent(dir);
};
$(document).ready(function () {
-
+ "use strict";
if ($('#body-login').length > 0) {
return true; //deactivate on login page
}