comparison interfaces/mushra.js @ 1209:943b0ba7ec83

Bug #1624 fix: New comment box management node in InterfaceContext.
author Nicholas Jillings <n.g.r.jillings@se14.qmul.ac.uk>
date Tue, 23 Feb 2016 10:49:48 +0000
parents 0e49d874ba97
children d5898c3ae2ba
comparison
equal deleted inserted replaced
1208:08f6b58b7c20 1209:943b0ba7ec83
206 // Distribute it randomnly 206 // Distribute it randomnly
207 sliderObj.slider.value = Math.random(); 207 sliderObj.slider.value = Math.random();
208 } 208 }
209 sliderBox.appendChild(sliderObj.holder); 209 sliderBox.appendChild(sliderObj.holder);
210 audioObject.bindInterface(sliderObj); 210 audioObject.bindInterface(sliderObj);
211 interfaceContext.createCommentBox(audioObject); 211 interfaceContext.commentBoxes.createCommentBox(audioObject);
212 label += 1; 212 label += 1;
213 } 213 }
214 214
215 }); 215 });
216 216
217 if (audioHolderObject.showElementComments) { 217 if (audioHolderObject.showElementComments) {
218 interfaceContext.showCommentBoxes(feedbackHolder,true); 218 interfaceContext.commentBoxes.showCommentBoxes(feedbackHolder,true);
219 } 219 }
220 220
221 $(audioHolderObject.commentQuestions).each(function(index,element) { 221 $(audioHolderObject.commentQuestions).each(function(index,element) {
222 var node = interfaceContext.createCommentQuestion(element); 222 var node = interfaceContext.createCommentQuestion(element);
223 feedbackHolder.appendChild(node.holder); 223 feedbackHolder.appendChild(node.holder);