clr commited on
Commit
7206f54
1 Parent(s): 035dcc0

Update js/js.php

Browse files
Files changed (1) hide show
  1. js/js.php +2 -1
js/js.php CHANGED
@@ -25,7 +25,8 @@ $(function (){
25
  // Click on utterance line.
26
  $("body").on('click', 'span[name=utterance]',
27
  function(event) {
28
- var vid = document.getElementById("speakera");
 
29
 
30
  // If user clicked "stop" on a playing line, pause video, remove ".playing", change icon to "play".
31
  if(!vid.paused) {
 
25
  // Click on utterance line.
26
  $("body").on('click', 'span[name=utterance]',
27
  function(event) {
28
+ //var vid = document.getElementById("speakera");
29
+ var vid = document.getElementById( $(this).attr("audiolink") );
30
 
31
  // If user clicked "stop" on a playing line, pause video, remove ".playing", change icon to "play".
32
  if(!vid.paused) {