change publicUploadButtonMock to public_upload
Changed jQuery selector for public preview to public_upload to correctly show preview
This commit is contained in:
parent
62040fe2d2
commit
9555305565
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue