mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-18 22:48:10 +02:00
This commit is contained in:
+16
-1
@@ -65,6 +65,21 @@ export function uiCommit(context) {
|
||||
// Initialize changeset if one does not exist yet.
|
||||
// Also pull values from local storage.
|
||||
if (!_changeset) {
|
||||
|
||||
// load in the URL hash values, if any
|
||||
var hash = context.ui().hash;
|
||||
if (hash.comment) {
|
||||
context.storage('comment', hash.comment);
|
||||
context.storage('commentDate', Date.now());
|
||||
}
|
||||
if (hash.source) {
|
||||
context.storage('source', hash.source);
|
||||
context.storage('commentDate', Date.now());
|
||||
}
|
||||
if (hash.hashtags) {
|
||||
context.storage('hashtags', hash.hashtags);
|
||||
}
|
||||
|
||||
var detected = utilDetect();
|
||||
tags = {
|
||||
comment: context.storage('comment') || '',
|
||||
@@ -94,7 +109,7 @@ export function uiCommit(context) {
|
||||
if (sources.indexOf('streetlevel imagery') === -1) {
|
||||
sources.push('streetlevel imagery');
|
||||
}
|
||||
|
||||
|
||||
// add the photo overlays used during editing as sources
|
||||
photoOverlaysUsed.forEach(function(photoOverlay) {
|
||||
if (sources.indexOf(photoOverlay) === -1) {
|
||||
|
||||
Reference in New Issue
Block a user