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-09-26 19:46:11 +0300
committerOlivier Paroz <github@oparoz.com>2015-09-26 19:46:11 +0300
commitd41a89d8730fb5c5d791cab88e5aef728f321e0f (patch)
treebb6ad9595c22e9c62411a0d6b0206165751adb09
parent336de5a1d2969c0ecaed853d85879734c24f326e (diff)
Rename getRequestToken to getPublicToken
[ci skip]
-rw-r--r--js/app.js2
-rw-r--r--js/galleryutility.js4
2 files changed, 3 insertions, 3 deletions
diff --git a/js/app.js b/js/app.js
index 0576d19b..a6d63ab7 100644
--- a/js/app.js
+++ b/js/app.js
@@ -4,7 +4,7 @@ $(document).ready(function () {
Gallery.hideSearch();
Gallery.utility = new Gallery.Utility();
Gallery.view = new Gallery.View();
- Gallery.token = Gallery.utility.getRequestToken();
+ Gallery.token = Gallery.utility.getPublicToken();
Gallery.ieVersion = Gallery.utility.getIeVersion();
// The first thing to do is to detect if we're on IE
diff --git a/js/galleryutility.js b/js/galleryutility.js
index c73b391a..4166121c 100644
--- a/js/galleryutility.js
+++ b/js/galleryutility.js
@@ -72,11 +72,11 @@
},
/**
- * Returns the token allowing access to files
+ * Returns the token allowing access to files shared via link
*
* @returns {string}
*/
- getRequestToken: function () {
+ getPublicToken: function () {
var element = $('#gallery');
var token;