changeset 2647:83ae42eab960

LC
author Nicholas Jillings <nicholas.jillings@mail.bcu.ac.uk>
date Thu, 19 Jan 2017 15:50:36 +0000
parents dc08127a5084
children 781187c743cc
files js/core.js
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/js/core.js	Thu Jan 19 15:49:33 2017 +0000
+++ b/js/core.js	Thu Jan 19 15:50:36 2017 +0000
@@ -638,7 +638,7 @@
             converter = new showdown.Converter(),
             p = new DOMParser();
         this.popupResponse.innerHTML = "";
-        this.popupTitle = p.parseFromString(converter.makeHtml(node.specification.statement), "text/html").getElementsByTagName("body")[0].firstElementChild;
+        this.popupTitle.appendChild(p.parseFromString(converter.makeHtml(node.specification.statement), "text/html").getElementsByTagName("body")[0].firstElementChild);
         if (node.specification.type == 'question') {
             var textArea = document.createElement('textarea');
             switch (node.specification.boxsize) {