Skip to content

Commit

Permalink
comment
Browse files Browse the repository at this point in the history
  • Loading branch information
kaheetonaa committed Oct 16, 2024
1 parent 01a857d commit 98110c2
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 8 deletions.
6 changes: 4 additions & 2 deletions dist/iD.js
Original file line number Diff line number Diff line change
Expand Up @@ -67806,6 +67806,7 @@

// modules/ui/splash.js
function uiSplash(context) {
var __team_selected2 = "";
return (selection2) => {
let updateMessage = "";
const sawPrivacyVersion = corePreferences("sawPrivacyVersion");
Expand All @@ -67829,7 +67830,7 @@
team_select.append("option").attr("value", "slovakia").html("Slovakia");
team_select.append("option").attr("value", "spain").html("Spain");
team_select.on("change", () => {
__team_selected = document.getElementById("team").value;
__team_selected2 = document.getElementById("team").value;
});
let modalSection = introModal.append("div").attr("class", "modal-section");
modalSection.append("p").html(_t.html("splash.text", {
Expand All @@ -67854,6 +67855,7 @@
let startEditing = buttonWrap.append("button").attr("class", "start-editing").on("click", () => {
if (document.getElementById("team").value != "null") {
modalSelection.close();
console.log(__team_selected2);
}
});
startEditing.append("svg").attr("class", "logo logo-features").append("use").attr("xlink:href", "#iD-logo-features");
Expand Down Expand Up @@ -74075,7 +74077,7 @@
corePreferences("commentDate", Date.now());
}
if (context.defaultChangesetHashtags()) {
corePreferences("hashtags", context.defaultChangesetHashtags(__team_selected));
corePreferences("hashtags", __team_selected);
corePreferences("commentDate", Date.now());
}
var detected = utilDetect();
Expand Down
6 changes: 3 additions & 3 deletions dist/iD.js.map

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion modules/ui/changeset_editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import { uiField } from './field';
import { uiFormFields } from './form_fields';
import { utilArrayUniqBy, utilCleanOsmString, utilRebind, utilTriggerEvent, utilUnicodeCharsCount } from '../util';


export function uiChangesetEditor(context) {
var dispatch = d3_dispatch('change');
var formFields = uiFormFields(context);
Expand Down
2 changes: 1 addition & 1 deletion modules/ui/commit.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export function uiCommit(context) {
prefs('commentDate', Date.now());
}
if (context.defaultChangesetHashtags()) {
prefs('hashtags', context.defaultChangesetHashtags(__team_selected));
prefs('hashtags', __team_selected);//context.defaultChangesetHashtags(__team_selected)
prefs('commentDate', Date.now());
}

Expand Down
5 changes: 4 additions & 1 deletion modules/ui/splash.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { uiSectionPrivacy } from './sections/privacy';


export function uiSplash(context) {
var __team_selected=''
return (selection) => {
// Exception - if there are restorable changes, skip this splash screen.
// This is because we currently only support one `uiModal` at a time
Expand Down Expand Up @@ -130,7 +131,9 @@ export function uiSplash(context) {
let startEditing = buttonWrap
.append('button')
.attr('class', 'start-editing')
.on('click', ()=>{if (document.getElementById("team").value!='null'){modalSelection.close()}});
.on('click', ()=>{if (document.getElementById("team").value!='null'){modalSelection.close();
console.log(__team_selected)
}});

startEditing
.append('svg')
Expand Down

0 comments on commit 98110c2

Please sign in to comment.