Browse Source

Check if the cue has changed before updating the HTML. (#853)

pull/854/head 2.1.1
Jordan Dukart 3 years ago committed by GitHub
parent
commit
adbfea79a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      modules/islandora_audio/js/audio.js

2
modules/islandora_audio/js/audio.js

@ -23,12 +23,14 @@
initialized = true;
if ($('audio')[0].textTracks.length > 0) {
$('audio')[0].textTracks[0].oncuechange = function() {
if (this.activeCues.length > 0) {
var currentCue = this.activeCues[0].text;
$('#audioTrack').html(currentCue);
}
}
}
}
}
Drupal.Audio = Drupal.Audio || {};
/**

Loading…
Cancel
Save