Mercurial > hg > webaudioevaluationtool
changeset 1527:74485fc481e1
Bug #1389: Statements also wrapped correctly
author | Nicholas Jillings <nickjillings@users.noreply.github.com> |
---|---|
date | Tue, 15 Sep 2015 10:16:34 +0100 |
parents | 0782ef068046 |
children | d0c76483dff8 75b17240082b |
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');