location.replace (fixes #462)

This commit is contained in:
John Firebaugh
2013-01-23 15:57:57 -05:00
parent 72ba6f52b2
commit 64e8e85187
+3 -3
View File
@@ -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();