Skip to content

Commit

Permalink
remove scroll block
Browse files Browse the repository at this point in the history
  • Loading branch information
mholta committed Jul 11, 2021
1 parent 62c04bf commit 4787b63
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
4 changes: 2 additions & 2 deletions pages/song/song.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ const initializeSongPage = (songTemplate) => {
song.capoUp();
};
/* Full screen */
document
/* document
.getElementById("js-chart-fullscreen-open")
.addEventListener("click", () => {
document.body.style.overflow = "hidden";
Expand All @@ -196,7 +196,7 @@ const initializeSongPage = (songTemplate) => {
.getElementById("js-chart-fullscreen-close")
.addEventListener("click", () => {
document.body.style.overflow = "auto";
});
}); */

document.querySelector("#fs-one-column").onclick = noColumns;
document.querySelector("#fs-two-columns").onclick = twoColumns;
Expand Down
14 changes: 11 additions & 3 deletions pages/submitSong/contribute.js
Original file line number Diff line number Diff line change
Expand Up @@ -785,7 +785,7 @@ const initializeContributeForm = () => {
getState().songs[getState().songs.length - 1].songNumber || "0"
) + 1
: 1,
artist: "",
artist: getState().artist.name,
songType: "",
themes: [],
aboutSong: "",
Expand All @@ -796,6 +796,7 @@ const initializeContributeForm = () => {
contributors: "",
linkSpotify: "",
linkAppleMusic: "",
videos: "",
chart: {
validState: false,
key: "",
Expand Down Expand Up @@ -1162,8 +1163,8 @@ Intro:
required: true,
DOMElement: null,
radioObjectList: [
{ value: "Album", labelText: "Album (flere sanger)" },
{ value: "Singel", labelText: "Singel (kun én sang)" },
{ value: "album", labelText: "Album (flere sanger)" },
{ value: "single", labelText: "Singel (kun én sang)" },
],
},
artist: {
Expand Down Expand Up @@ -1412,6 +1413,13 @@ Intro:
required: false,
DOMElement: null,
},
videos: {
labelText: "Link til videoer (YouTube eller Vimeo) knyttet til sangen",
detailesLabelText: null,
inputType: TEXTAREA,
required: false,
DOMElement: null,
},
};

const Fields = FormFieldsFromObject({
Expand Down

0 comments on commit 4787b63

Please sign in to comment.