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 d8455da commit 197c553
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 9 deletions.
7 changes: 4 additions & 3 deletions dist/iD.js
Original file line number Diff line number Diff line change
Expand Up @@ -67805,6 +67805,7 @@
}

// modules/ui/splash.js
var team_selected2 = "";
function uiSplash(context) {
return (selection2) => {
let updateMessage = "";
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", () => {
console.log(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 Down Expand Up @@ -74075,7 +74076,7 @@
corePreferences("commentDate", Date.now());
}
if (context.defaultChangesetHashtags()) {
corePreferences("hashtags", context.defaultChangesetHashtags(document.getElementById("team").value));
corePreferences("hashtags", context.defaultChangesetHashtags(team_selected));
corePreferences("commentDate", Date.now());
}
var detected = utilDetect();
Expand Down Expand Up @@ -74604,7 +74605,7 @@
context.changeset = null;
let _defaultChangesetComment = context.initialHashParams.comment;
let _defaultChangesetSource = context.initialHashParams.source;
let _defaultChangesetHashtags = "EUthMappers";
let _defaultChangesetHashtags = "EUthMappers ";
context.defaultChangesetComment = function(val) {
if (!arguments.length) return _defaultChangesetComment;
_defaultChangesetComment = val;
Expand Down
6 changes: 3 additions & 3 deletions dist/iD.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion modules/core/context.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export function coreContext() {

let _defaultChangesetComment = context.initialHashParams.comment; //context.initialHashParams.comment
let _defaultChangesetSource = context.initialHashParams.source;
let _defaultChangesetHashtags = 'EUthMappers'; //context.initialHashParams.comment
let _defaultChangesetHashtags = 'EUthMappers'+' '; //context.initialHashParams.comment
context.defaultChangesetComment = function(val) {
if (!arguments.length) return _defaultChangesetComment;
_defaultChangesetComment = val;
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(document.getElementById("team").value));
prefs('hashtags', context.defaultChangesetHashtags(team_selected));
prefs('commentDate', Date.now());
}

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

var team_selected=''

export function uiSplash(context) {
return (selection) => {
Expand Down Expand Up @@ -74,7 +75,7 @@ export function uiSplash(context) {
.attr('value','spain')
.html('Spain')

team_select.on('change',()=>{console.log(document.getElementById("team").value);
team_select.on('change',()=>{team_selected=document.getElementById("team").value;
})


Expand Down

0 comments on commit 197c553

Please sign in to comment.