mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-19 06:58:32 +02:00
location.replace (fixes #462)
This commit is contained in:
@@ -45,9 +45,9 @@ iD.modes.Select = function(entity, initial) {
|
||||
});
|
||||
|
||||
var q = iD.util.stringQs(location.hash.substring(1));
|
||||
location.hash = '#' + iD.util.qsString(_.assign(q, {
|
||||
location.replace('#' + iD.util.qsString(_.assign(q, {
|
||||
id: entity.id
|
||||
}), true);
|
||||
}), true));
|
||||
|
||||
d3.select('.inspector-wrap')
|
||||
.style('display', 'block')
|
||||
@@ -166,7 +166,7 @@ iD.modes.Select = function(entity, initial) {
|
||||
});
|
||||
|
||||
var q = iD.util.stringQs(location.hash.substring(1));
|
||||
location.hash = '#' + iD.util.qsString(_.omit(q, 'id'), true);
|
||||
location.replace('#' + iD.util.qsString(_.omit(q, 'id'), true));
|
||||
|
||||
keybinding.off();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user