Skip to content

Commit

Permalink
Fix HTML body input disabled in mail templates js (#29229)
Browse files Browse the repository at this point in the history
  • Loading branch information
richard67 authored May 26, 2020
1 parent 8d70f4a commit bbe073c
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,13 @@

if (target.value === '0') {
this.setHtmlBodyValue(this.templateData.htmlbody ? this.templateData.htmlbody.master : '');
this.inputHtmlBody.disabled = true;
Joomla.editors.instances[this.inputHtmlBody.id].disable(true);
tagsContainer.classList.add('hidden');
} else if (target.value === '1') {
Joomla.editors.instances[this.inputHtmlBody.id].disable(false);
this.inputHtmlBody.disabled = false;
this.inputHtmlBody.readOnly = false;
this.setHtmlBodyValue(this.templateData.htmlbody ? this.templateData.htmlbody.translated : '');
tagsContainer.classList.remove('hidden');
} else {
Expand Down

0 comments on commit bbe073c

Please sign in to comment.