fix JavaScript for jQuery > 3.0

This commit is contained in:
Alexander Bigga 2020-03-13 14:21:19 +01:00
parent 51672d7442
commit c871bbb62d
2 changed files with 2 additions and 2 deletions

View File

@ -425,7 +425,7 @@ dlfViewer.prototype.init = function(controlNames) {
$(window).trigger("map-loadend", window);
// append listener for saving view params in case of flipping pages
$(window).unload($.proxy(function() {
$(window).on("unload", $.proxy(function() {
// check if image manipulation control exists and if yes deactivate it first for proper recognition of
// the actual map view
if (this.imageManipulationControl !== undefined && this.imageManipulationControl.isActive()) {

View File

@ -747,7 +747,7 @@ dlfUtils.isCorsEnabled = function (imageObjs) {
async: false
}).done(function (data, type) {
response = type === 'success' && data.indexOf('Access-Control-Allow-Origin') !== -1;
}).error(function (data, type) {
}).fail(function (data, type) {
response = false;
});
});