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 committed by Morris Jobke
parent 6d330e8a3f
commit 5f7bc2cf4d

View file

@ -720,7 +720,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 {