Skip to content

Commit

Permalink
Merge pull request #4227 from camptocamp/ie_confirmation_oedit
Browse files Browse the repository at this point in the history
Prevent alert in ie11 if there is no changes
  • Loading branch information
ger-benjamin committed Sep 12, 2018
2 parents 957285b + 8aa552c commit 31d3225
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contribs/gmf/src/directives/objectediting.js
Original file line number Diff line number Diff line change
Expand Up @@ -956,7 +956,7 @@ gmf.ObjecteditingController.prototype.refreshWMSLayer_ = function() {
* Called before the window unloads. Show a confirmation message if there are
* unsaved modifications.
* @param {Event} e Event.
* @return {string} Message
* @return {string|undefined} Message
* @private
*/
gmf.ObjecteditingController.prototype.handleWindowBeforeUnload_ = function(e) {
Expand All @@ -966,7 +966,7 @@ gmf.ObjecteditingController.prototype.handleWindowBeforeUnload_ = function(e) {
(e || window.event).returnValue = msg;
return msg;
}
return '';
return undefined;
};


Expand Down

0 comments on commit 31d3225

Please sign in to comment.