aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSam Potts <sam@potts.es>2018-04-27 21:42:13 +1000
committerSam Potts <sam@potts.es>2018-04-27 21:42:13 +1000
commit8efa46aeab6df4c3621f2a9c21ec76a7e73f9e9b (patch)
tree10f506ec5ce3d4a9159576cbc7f0c8c653ea8a22 /src
parent44b30380f71f03c8944e42b24c7ce3e92a0f2eea (diff)
parent5ca769807e773d6d6a884771ca8864e4db8c1376 (diff)
downloadplyr-8efa46aeab6df4c3621f2a9c21ec76a7e73f9e9b.tar.lz
plyr-8efa46aeab6df4c3621f2a9c21ec76a7e73f9e9b.tar.xz
plyr-8efa46aeab6df4c3621f2a9c21ec76a7e73f9e9b.zip
Merge branch 'master' into beta
Diffstat (limited to 'src')
-rw-r--r--src/js/controls.js2
-rw-r--r--src/js/plyr.js4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/js/controls.js b/src/js/controls.js
index 4404da65..7ddcefef 100644
--- a/src/js/controls.js
+++ b/src/js/controls.js
@@ -331,7 +331,7 @@ const controls = {
const container = utils.createElement('div', utils.extend(attributes, {
class: `plyr__time ${attributes.class}`,
'aria-label': i18n.get(type, this.config),
- }), '0:00');
+ }), '00:00');
// Reference for updates
this.elements.display[type] = container;
diff --git a/src/js/plyr.js b/src/js/plyr.js
index 36b05082..6daa403a 100644
--- a/src/js/plyr.js
+++ b/src/js/plyr.js
@@ -1076,8 +1076,8 @@ class Plyr {
utils.toggleClass(this.elements.controls, this.config.classNames.noTransition, false);
}
- // Check if controls toggled
- const toggled = utils.toggleClass(this.elements.container, this.config.classNames.hideControls, true);
+ // Set hideControls class
+ const toggled = utils.toggleClass(this.elements.container, this.config.classNames.hideControls, this.config.hideControls);
// Trigger event and close menu
if (toggled) {