summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/files/js/files.js8
1 files changed, 2 insertions, 6 deletions
diff --git a/apps/files/js/files.js b/apps/files/js/files.js
index 3178ff65af8..fd18cf21ee8 100644
--- a/apps/files/js/files.js
+++ b/apps/files/js/files.js
@@ -821,12 +821,8 @@ function lazyLoadPreview(path, mime, ready) {
var x = $('#filestable').data('preview-x');
var y = $('#filestable').data('preview-y');
var previewURL = OC.Router.generate('core_ajax_preview', {file: encodeURIComponent(path), x:x, y:y});
- $.ajax({
- url: previewURL,
- type: 'GET',
- success: function() {
- ready(previewURL);
- }
+ $.get(previewURL, function() {
+ ready(previewURL);
});
}