use jQuery.get instead of jQuery.ajax
This commit is contained in:
parent
e7c0693570
commit
164502477d
1 changed files with 2 additions and 6 deletions
|
@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue