From 2235dc1e08019f0987133fa4449a6c5da5b00031 Mon Sep 17 00:00:00 2001 From: Robert Peek <> Date: Fri, 11 Dec 2020 10:03:23 +0000 Subject: [PATCH] Fixes #22 --- README.md | 2 +- bower.json | 2 +- js/adapt-enhanced-question.js | 5 +++++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index bb18494..c6348dd 100644 --- a/README.md +++ b/README.md @@ -69,7 +69,7 @@ The Enhanced Question attribute group contains values for **_isEnabled**, **_ove This cannot be used when adapt-contrib-tutor is installed, as there are issues with adapt-contrib-trickle events, and multiple feedback popups will open. ---------------------------- -**Version number:** 3.3.0 +**Version number:** 3.3.1 **Framework versions supported:** 4+ **Author / maintainer:** DeltaNet with [contributors](https://github.com/deltanet/adapt-enhanced-question/graphs/contributors) **Accessibility support:** Yes diff --git a/bower.json b/bower.json index b46a44f..a30f07f 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "adapt-enhanced-question", - "version": "3.3.0", + "version": "3.3.1", "framework": ">=4", "homepage": "https://github.com/deltanet/adapt-enhanced-question", "issues": "https://github.com/deltanet/adapt-enhanced-question/issues", diff --git a/js/adapt-enhanced-question.js b/js/adapt-enhanced-question.js index f4ca0a3..0de25ed 100644 --- a/js/adapt-enhanced-question.js +++ b/js/adapt-enhanced-question.js @@ -96,6 +96,11 @@ define([ view.model.set('feedbackTitle', view.model.get("feedbackTitle")); } + // Ensure 'Show feedback' button is displayed + if (view.model.get('feedbackMessage') == "") { + view.model.set('feedbackMessage', " "); + } + Adapt.trigger('audio:stopAllChannels'); var classes = ' enhancedQuestion-popup';