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

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