Mercurial > hg > webaudioevaluationtool
comparison interfaces/mushra.js @ 2726:c74c698795a9
#163. Fixed
author | Nicholas Jillings <nicholas.jillings@mail.bcu.ac.uk> |
---|---|
date | Sat, 15 Apr 2017 12:05:31 +0100 |
parents | d29471d114cf |
children | c59bcb698684 |
comparison
equal
deleted
inserted
replaced
2725:9c01d5dd22a2 | 2726:c74c698795a9 |
---|---|
314 var self = this; | 314 var self = this; |
315 // Called when playback has begun | 315 // Called when playback has begun |
316 this.play.setAttribute("playstate", "playing"); | 316 this.play.setAttribute("playstate", "playing"); |
317 $(".track-slider").removeClass('track-slider-playing'); | 317 $(".track-slider").removeClass('track-slider-playing'); |
318 $(this.holder).addClass('track-slider-playing'); | 318 $(this.holder).addClass('track-slider-playing'); |
319 interfaceContext.commentBoxes.highlightById(audioObject.id); | |
319 var outsideReference = document.getElementById('outside-reference'); | 320 var outsideReference = document.getElementById('outside-reference'); |
320 if (outsideReference !== null) { | 321 if (outsideReference !== null) { |
321 $(outsideReference).removeClass('track-slider-playing'); | 322 $(outsideReference).removeClass('track-slider-playing'); |
322 } | 323 } |
323 this.play.textContent = "Stop"; | 324 this.play.textContent = "Stop"; |
344 $(this.holder).removeClass('track-slider-playing'); | 345 $(this.holder).removeClass('track-slider-playing'); |
345 this.play.textContent = "Play"; | 346 this.play.textContent = "Play"; |
346 if (page.restrictMovement && page.loop) { | 347 if (page.restrictMovement && page.loop) { |
347 $(this.slider).addClass("track-slider-range-disabled"); | 348 $(this.slider).addClass("track-slider-range-disabled"); |
348 this.slider.setAttribute("disabled", "true"); | 349 this.slider.setAttribute("disabled", "true"); |
350 } | |
351 var box = interfaceContext.commentBoxes.boxes.find(function (a) { | |
352 return a.id === audioObject.id; | |
353 }); | |
354 if (box) { | |
355 box.highlight(false); | |
349 } | 356 } |
350 }; | 357 }; |
351 this.getValue = function () { | 358 this.getValue = function () { |
352 return this.slider.value; | 359 return this.slider.value; |
353 }; | 360 }; |