mirror of
https://github.com/FoggedLens/iD.git
synced 2026-06-05 22:46:38 +02:00
More notes, don't simulate a href
This commit is contained in:
@@ -95,8 +95,6 @@ iD.modes.AddRoad = {
|
||||
|
||||
// http://josm.openstreetmap.de/browser/josm/trunk/src/org/openstreetmap/josm/actions/mapmode/ImproveWayAccuracyAction.java#L431
|
||||
// https://github.com/systemed/potlatch2/blob/master/net/systemeD/halcyon/connection/Way.as#L215
|
||||
|
||||
|
||||
function addRoad() {
|
||||
var t = d3.select(d3.event.target),
|
||||
node,
|
||||
|
||||
@@ -16,8 +16,12 @@ iD.userpanel = function(connection) {
|
||||
selection
|
||||
.append('a')
|
||||
.attr('class', 'logout')
|
||||
.attr('href', '#')
|
||||
.text('logout')
|
||||
.on('click', event.logout);
|
||||
.on('click', function() {
|
||||
d3.event.preventDefault();
|
||||
event.logout();
|
||||
});
|
||||
});
|
||||
} else {
|
||||
selection
|
||||
|
||||
Reference in New Issue
Block a user