Skip to content

Commit

Permalink
Merge pull request #2458 from WikiWatershed/cpc/remove-rwd-point
Browse files Browse the repository at this point in the history
Remove RWD point if RWD cancel button is clicked
  • Loading branch information
caseycesari authored Nov 2, 2017
2 parents 20ad7af + bdb651e commit 5272f5d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/mmw/js/src/draw/views.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,12 @@ var DrawWindow = Marionette.LayoutView.extend({

onShow: function() {
var self = this,
resetRwdDrawingState = function() {
resetRwdDrawingState = function(e) {
// If the cancel button was clicked
if (e && e.type === 'click') {
self.model.clearRwdClickedPoint(App.getLeafletMap());
}

self.resetDrawingState({
clearOnFailure: false
});
Expand Down

0 comments on commit 5272f5d

Please sign in to comment.