Skip to content

Commit

Permalink
Remove geolink class from add note button while adding notes
Browse files Browse the repository at this point in the history
This was lost in the recent UI work but is important to stop changes
in map location causing the button to be reenabled.
  • Loading branch information
tomhughes committed Jul 29, 2013
1 parent c93308d commit 393651e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/assets/javascripts/index/notes.js.erb
Expand Up @@ -191,7 +191,7 @@ function initializeNotes(map) {
notes[feature.properties.id] = updateMarker(marker, feature);
newNote = null;

addNoteButton.removeClass("disabled");
addNoteButton.removeClass("disabled").addClass("geolink");
}
}

Expand Down Expand Up @@ -226,7 +226,7 @@ function initializeNotes(map) {

if (addNoteButton.hasClass("disabled")) return;

addNoteButton.addClass("disabled");
addNoteButton.removeClass("geolink").addClass("disabled");

map.addLayer(noteLayer);

Expand Down Expand Up @@ -263,7 +263,7 @@ function initializeNotes(map) {
newNote.addTo(noteLayer).bindPopup(popupContent[0], popupOptions()).openPopup();

newNote.on("remove", function (e) {
addNoteButton.removeClass("disabled");
addNoteButton.removeClass("disabled").addClass("geolink");
}).on("dragstart", function (e) {
$(newNote).stopTime("removenote");
}).on("dragend", function (e) {
Expand Down

0 comments on commit 393651e

Please sign in to comment.