change publicUploadButtonMock to public_upload

Changed jQuery selector for public preview to public_upload to correctly show preview
This commit is contained in:
Myles McNamara 2014-01-20 11:58:01 -05:00
parent 62040fe2d2
commit 9555305565
1 changed files with 1 additions and 1 deletions

View File

@ -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 {