use jQuery.get instead of jQuery.ajax

This commit is contained in:
Georg Ehrke 2013-08-16 17:24:45 +02:00
parent e7c0693570
commit 164502477d
1 changed files with 2 additions and 6 deletions

View File

@ -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);
});
}