aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorg Ehrke <developer@georgehrke.com>2013-08-16 17:24:45 +0200
committerGeorg Ehrke <developer@georgehrke.com>2013-08-16 17:25:38 +0200
commit164502477d8eac293ea002d39378be846bcc733c (patch)
treec8b5b8f90462f9e4ab6ab1df4765ca566b6f2c01
parente7c06935702dc794f7178cdc47ce947404752ec0 (diff)
downloadnextcloud-server-164502477d8eac293ea002d39378be846bcc733c.tar.gz
nextcloud-server-164502477d8eac293ea002d39378be846bcc733c.zip
use jQuery.get instead of jQuery.ajax
-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);
});
}