aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMyles McNamara <myles@smyl.es>2014-01-20 11:58:01 -0500
committerMyles McNamara <myles@smyl.es>2014-01-20 11:58:01 -0500
commit955530556550d2e753675142486ee91d5a9ce6fa (patch)
tree022ba15fdfd231d5b3f7c8eae9bdf9f50ff1c02d
parent62040fe2d2cacafb3b534ff7de2cded7ca64daf4 (diff)
downloadnextcloud-server-955530556550d2e753675142486ee91d5a9ce6fa.tar.gz
nextcloud-server-955530556550d2e753675142486ee91d5a9ce6fa.zip
change publicUploadButtonMock to public_upload
Changed jQuery selector for public preview to public_upload to correctly show preview
-rw-r--r--apps/files/js/files.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files/js/files.js b/apps/files/js/files.js
index fdaa3aa3342..12e870f141b 100644
--- a/apps/files/js/files.js
+++ b/apps/files/js/files.js
@@ -717,7 +717,7 @@ Files.lazyLoadPreview = function(path, mime, ready, width, height, etag) {
console.warn('Files.lazyLoadPreview(): missing etag argument');
}
- if ( $('#publicUploadButtonMock').length ) {
+ if ( $('#public_upload').length ) {
urlSpec.t = $('#dirToken').val();
previewURL = OC.Router.generate('core_ajax_public_preview', urlSpec);
} else {