Skip to content

Commit

Permalink
Merge pull request sofialovin#112 from sofialovin/revert-111-restore_…
Browse files Browse the repository at this point in the history
…local_copy

Revert "added song"
  • Loading branch information
davebenjoya committed Oct 18, 2020
2 parents b8baf3d + b7ba7a0 commit 114e0bc
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
16 changes: 15 additions & 1 deletion app/javascript/components/edit_song.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@ const editSong = () => {
// populateFields(save);
console.log('edit ' + save);





document.querySelectorAll('input.hide').forEach(input => {
if (input.value != "Enter Lyrics") {
input.dataset.lyrics = input.value;
Expand All @@ -110,7 +114,15 @@ const editSong = () => {
input.dataset.lyrics = input.value;

}
});
})









document.querySelector('form').method = 'patch';
document.querySelector('#song-html').value = save.innerHTML;
Expand All @@ -134,6 +146,8 @@ const editSong = () => {
saveChangesBtn && saveChangesBtn.addEventListener('click', saveChanges);




const populateFields = (save) => {
const title = document.querySelector('#song-name');

Expand Down
1 change: 0 additions & 1 deletion rubatoapp
Submodule rubatoapp deleted from a264de

0 comments on commit 114e0bc

Please sign in to comment.