comparison interfaces/mushra.js @ 1199:29eaafbe6248

Bug #1584 Fix.
author Nicholas Jillings <n.g.r.jillings@se14.qmul.ac.uk>
date Mon, 22 Feb 2016 12:51:14 +0000
parents a4ad9e55b5b8
children 0e49d874ba97
comparison
equal deleted inserted replaced
1198:4560587673b4 1199:29eaafbe6248
180 180
181 currentTestHolder = document.createElement('audioHolder'); 181 currentTestHolder = document.createElement('audioHolder');
182 currentTestHolder.id = audioHolderObject.id; 182 currentTestHolder.id = audioHolderObject.id;
183 currentTestHolder.repeatCount = audioHolderObject.repeatCount; 183 currentTestHolder.repeatCount = audioHolderObject.repeatCount;
184 184
185 $(audioHolderObject.commentQuestions).each(function(index,element) {
186 var node = interfaceContext.createCommentQuestion(element);
187 feedbackHolder.appendChild(node.holder);
188 });
189
190 // Find all the audioElements from the audioHolder 185 // Find all the audioElements from the audioHolder
191 var label = 0; 186 var label = 0;
192 $(audioHolderObject.audioElements).each(function(index,element){ 187 $(audioHolderObject.audioElements).each(function(index,element){
193 // Find URL of track 188 // Find URL of track
194 // In this jQuery loop, variable 'this' holds the current audioElement. 189 // In this jQuery loop, variable 'this' holds the current audioElement.
215 audioObject.bindInterface(sliderObj); 210 audioObject.bindInterface(sliderObj);
216 interfaceContext.createCommentBox(audioObject); 211 interfaceContext.createCommentBox(audioObject);
217 label += 1; 212 label += 1;
218 } 213 }
219 214
215 });
216
217 if (audioHolderObject.showElementComments) {
218 interfaceContext.showCommentBoxes(feedbackHolder,true);
219 }
220
221 $(audioHolderObject.commentQuestions).each(function(index,element) {
222 var node = interfaceContext.createCommentQuestion(element);
223 feedbackHolder.appendChild(node.holder);
220 }); 224 });
221 225
222 // Auto-align 226 // Auto-align
223 resizeWindow(null); 227 resizeWindow(null);
224 } 228 }