Browse Source
remove js debug statements in sidebar text preview generator
Signed-off-by: Robin Appelman <robin@icewind.nl>
pull/2422/head
Robin Appelman
9 years ago
No known key found for this signature in database
GPG Key ID: 425003AC385454C5
1 changed files with
1 additions and
5 deletions
-
apps/files/js/sidebarpreviewtext.js
|
|
|
@ -18,7 +18,6 @@ |
|
|
|
}, |
|
|
|
|
|
|
|
handlePreview: function (model, $thumbnailDiv, $thumbnailContainer, fallback) { |
|
|
|
console.log(model); |
|
|
|
var previewWidth = $thumbnailContainer.parent().width() + 50; // 50px for negative margins
|
|
|
|
var previewHeight = previewWidth / (16 / 9); |
|
|
|
|
|
|
|
@ -36,10 +35,7 @@ |
|
|
|
}, |
|
|
|
|
|
|
|
getFileContent: function (path) { |
|
|
|
console.log(path); |
|
|
|
var url = OC.linkToRemoteBase('files' + path); |
|
|
|
console.log(url); |
|
|
|
return $.get(url); |
|
|
|
return $.get(OC.linkToRemoteBase('files' + path)); |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|
|