Skip to content

Commit b2cb40d

Browse files
committed
Fixed #228
1 parent 623d5e6 commit b2cb40d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

grails-app/assets/javascripts/feature.js

+2
Original file line numberDiff line numberDiff line change
@@ -614,6 +614,8 @@ ecodata.forms.maps.showMapInModal = function(options) {
614614

615615
})
616616
.one('hidden.bs.modal', function (e) {
617+
$ok.unbind('click', okPressed); // This is done because otherwise when cancel is pressed the listener isn't removed.
618+
617619
// This check is necessary because the accordion also fires these events which bubble to the modal.
618620
if (e.target == this) {
619621
self.featureMapInstance.clearDrawnItems();

0 commit comments

Comments
 (0)