comparison core.js @ 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
comparison
equal deleted inserted replaced
856:fb41d65cc89f 857:57708aa826bb
163 this.postNode = function() { 163 this.postNode = function() {
164 // This will take the node from the popupOptions and display it 164 // This will take the node from the popupOptions and display it
165 var node = this.popupOptions[this.currentIndex]; 165 var node = this.popupOptions[this.currentIndex];
166 this.popupResponse.innerHTML = null; 166 this.popupResponse.innerHTML = null;
167 if (node.type == 'statement') { 167 if (node.type == 'statement') {
168 this.popupTitle.textContent = node.statement; 168 this.popupTitle.textContent = null;
169 var statement = document.createElement('span');
170 statement.textContent = node.statement;
171 this.popupResponse.appendChild(statement);
169 } else if (node.type == 'question') { 172 } else if (node.type == 'question') {
170 this.popupTitle.textContent = node.question; 173 this.popupTitle.textContent = node.question;
171 var textArea = document.createElement('textarea'); 174 var textArea = document.createElement('textarea');
172 switch (node.boxsize) { 175 switch (node.boxsize) {
173 case 'small': 176 case 'small':