aboutsummaryrefslogtreecommitdiffstats
path: root/src/js
diff options
context:
space:
mode:
authorSam Potts <me@sampotts.me>2016-01-21 09:43:27 +1100
committerSam Potts <me@sampotts.me>2016-01-21 09:43:27 +1100
commit76917751e38c942c5ae66a2db1dde6625f0ad208 (patch)
tree93d48467c7d0732f68c878236c7c6f21845f71a4 /src/js
parent84a1b03d7d2a4788b4c25fa4b3cea0b62b90f2d1 (diff)
downloadplyr-76917751e38c942c5ae66a2db1dde6625f0ad208.tar.lz
plyr-76917751e38c942c5ae66a2db1dde6625f0ad208.tar.xz
plyr-76917751e38c942c5ae66a2db1dde6625f0ad208.zip
Small bug fixes
Diffstat (limited to 'src/js')
-rw-r--r--src/js/plyr.js10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/js/plyr.js b/src/js/plyr.js
index 2a86c003..0b5bab14 100644
--- a/src/js/plyr.js
+++ b/src/js/plyr.js
@@ -46,7 +46,7 @@
container: null,
wrapper: '.plyr__controls'
},
- labels: '[data-plyr] .sr-only, label .sr-only',
+ labels: '[data-plyr]',
buttons: {
seek: '[data-plyr="seek"]',
play: '[data-plyr="play"]',
@@ -787,6 +787,9 @@
else {
plyr.captionsContainer.innerHTML = '';
}
+
+ // Force redraw
+ // var redraw = plyr.captionsContainer.offsetHeight;
}
// Display captions container and button (for initialization)
@@ -929,7 +932,7 @@
// Setup tooltips
if (config.tooltips) {
- var labels = _getElements(config.selectors.labels);
+ var labels = _getElements(config.selectors.labels + ' .' + config.classes.hidden);
for (var i = labels.length - 1; i >= 0; i--) {
var label = labels[i];
@@ -1472,6 +1475,9 @@
// Display a cue, if there is one
if (this.activeCues[0] && this.activeCues[0].hasOwnProperty('text')) {
plyr.captionsContainer.appendChild(this.activeCues[0].getCueAsHTML().trim());
+
+ // Force redraw
+ // var redraw = plyr.captionsContainer.offsetHeight;
}
});
}