Skip to content

Commit

Permalink
enable/disable "Stop Drawing" (Clear Drawing) button when appropriate.
Browse files Browse the repository at this point in the history
  • Loading branch information
tmcgee committed Jan 9, 2017
1 parent 853cf85 commit 7e0cd70
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions widgets/Search.js
Original file line number Diff line number Diff line change
Expand Up @@ -1138,6 +1138,7 @@ define([
this.searchPolygonButtonDijit.set('checked', false);
this.searchFreehandPolygonButtonDijit.set('checked', false);
this.searchStopDrawingButtonDijit.set('checked', true);
this.searchStopDrawingButtonDijit.set('disabled', true);
this.btnSpatialSearch.set('disabled', true);
},

Expand All @@ -1157,6 +1158,7 @@ define([

if (this.enableDrawMultipleShapes) {
this.btnSpatialSearch.set('disabled', false);
this.searchStopDrawingButtonDijit.set('disabled', false);
} else {
this.doSpatialSearch();
}
Expand Down

0 comments on commit 7e0cd70

Please sign in to comment.