From 6fb8a7ab7e59e2df13be4a026308cbafa7632701 Mon Sep 17 00:00:00 2001 From: Damyon Wiese Date: Mon, 31 Oct 2016 15:02:30 +0800 Subject: [PATCH] MDL-56621 forms: Hide format menu if only one This was a regression in the new templates for editors. --- lib/form/templates/editor_textarea.mustache | 8 ++++---- theme/boost/templates/core_form/editor_textarea.mustache | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/form/templates/editor_textarea.mustache b/lib/form/templates/editor_textarea.mustache index 22e8a1ec803..7c39781561b 100644 --- a/lib/form/templates/editor_textarea.mustache +++ b/lib/form/templates/editor_textarea.mustache @@ -3,14 +3,14 @@ onchange="{{onchange}}" {{/changelistener}}>{{value}}
- {{^onlyoneformat}} + {{#hasformats}} - {{/onlyoneformat}} - {{#onlyoneformat}} + {{/hasformats}} + {{^hasformats}} - {{/onlyoneformat}} + {{/hasformats}}
diff --git a/theme/boost/templates/core_form/editor_textarea.mustache b/theme/boost/templates/core_form/editor_textarea.mustache index ea49062eda5..f8ae956c181 100644 --- a/theme/boost/templates/core_form/editor_textarea.mustache +++ b/theme/boost/templates/core_form/editor_textarea.mustache @@ -3,14 +3,14 @@ onchange="{{onchange}}" {{/changelistener}}>{{value}}
- {{^onlyoneformat}} + {{#hasformats}} - {{/onlyoneformat}} - {{#onlyoneformat}} + {{/hasformats}} + {{^hasformats}} - {{/onlyoneformat}} + {{/hasformats}}