mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 17:23:02 +00:00
don't permalink negative IDs (fixes #1374)
This commit is contained in:
@@ -91,10 +91,16 @@ iD.modes.Select = function(context, selection) {
|
||||
});
|
||||
});
|
||||
|
||||
var q = iD.util.stringQs(location.hash.substring(1));
|
||||
location.replace('#' + iD.util.qsString(_.assign(q, {
|
||||
id: selection.join(',')
|
||||
}), true));
|
||||
var notNew = selection.filter(function(id) {
|
||||
return !context.entity(id).isNew();
|
||||
});
|
||||
|
||||
if (notNew.length) {
|
||||
var q = iD.util.stringQs(location.hash.substring(1));
|
||||
location.replace('#' + iD.util.qsString(_.assign(q, {
|
||||
id: notNew.join(',')
|
||||
}), true));
|
||||
}
|
||||
|
||||
if (singular()) {
|
||||
inspector = iD.ui.Inspector(context, singular())
|
||||
|
||||
Reference in New Issue
Block a user