]> source.dussan.org Git - nextcloud-server.git/commitdiff
fixing preview generation
authorThomas Müller <thomas.mueller@tmit.eu>
Wed, 15 Jan 2014 14:07:24 +0000 (15:07 +0100)
committerThomas Müller <thomas.mueller@tmit.eu>
Wed, 15 Jan 2014 14:07:24 +0000 (15:07 +0100)
apps/files/js/files.js

index fdaa3aa33423ab5d0456920882df037a62ab013d..d5e8450f41ffa0eb838d5b698227d403fd9b8a2f 100644 (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 ( $('#isPublic').length ) {
                        urlSpec.t = $('#dirToken').val();
                        previewURL = OC.Router.generate('core_ajax_public_preview', urlSpec);
                } else {