changeset 857:57708aa826bb

Bug #1389: Statements also wrapped correctly
author Nicholas Jillings <n.g.r.jillings@se14.qmul.ac.uk>
date Tue, 15 Sep 2015 10:16:34 +0100
parents fb41d65cc89f
children 2b8c36924bfd
files core.js
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/core.js	Tue Sep 15 10:13:20 2015 +0100
+++ b/core.js	Tue Sep 15 10:16:34 2015 +0100
@@ -165,7 +165,10 @@
 		var node = this.popupOptions[this.currentIndex];
 		this.popupResponse.innerHTML = null;
 		if (node.type == 'statement') {
-			this.popupTitle.textContent = node.statement;
+			this.popupTitle.textContent = null;
+			var statement = document.createElement('span');
+			statement.textContent = node.statement;
+			this.popupResponse.appendChild(statement);
 		} else if (node.type == 'question') {
 			this.popupTitle.textContent = node.question;
 			var textArea = document.createElement('textarea');