Skip to content

Commit

Permalink
Mobile: Add timeout to feature info
Browse files Browse the repository at this point in the history
  • Loading branch information
uprel committed Jun 5, 2019
1 parent b2311b1 commit 49e8084
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion client_mobile/src/feature_info.js
Expand Up @@ -118,6 +118,7 @@ FeatureInfo.prototype.handleEvent = function (e) {
$.ajax({
url: url,
dataType: 'text',
timeout: 3000,
context: this
}).done(function (data, status) {
var results = null;
Expand All @@ -131,7 +132,11 @@ FeatureInfo.prototype.handleEvent = function (e) {
this.resultsCallback(status,results);
//allow clicking again
Map.toggleClickHandling(true);
});
})
.fail(function (xhr, status, error) {
//todo what with error here
Map.toggleClickHandling(true);
});
};

/**
Expand Down

0 comments on commit 49e8084

Please sign in to comment.