Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix editing cms sections in different languages#417

Merged
leszczuu merged 2 commits into
masterfrom
bugfix/lang_fix
Jan 17, 2022
Merged

fix editing cms sections in different languages#417
leszczuu merged 2 commits into
masterfrom
bugfix/lang_fix

Conversation

@Harvel218
Copy link
Copy Markdown
Contributor

@Harvel218 Harvel218 commented Jan 17, 2022

Q A
Bug fix? yes
BC breaks? no


if (mediaContainer.querySelector(`input[type=hidden]`).value === '') {
deleteButton.classList.add('is-hidden');
return;
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add newline before return

this.deleteButton.classList.remove('is-hidden');
this.deleteButton.addEventListener('click', (e) => {
this._resetValues();
deleteButton.classList.remove('is-hidden');
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add newline after }

this.deleteButton.addEventListener('click', (e) => {
this._resetValues();
deleteButton.classList.remove('is-hidden');
deleteButton.addEventListener('click', (e) => {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

e is not used

this._getMediaImages(mediaContainer);
});
this.hiddenInput.addEventListener('change', (e) => {
mediaContainer.querySelector(`input[type=hidden]`).addEventListener('change', (e) => {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

normal ' will suffice ( at input[type=hidden]), also in all occurrences below

@leszczuu leszczuu merged commit 87a0d71 into master Jan 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants