aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/assets
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-10-28 09:37:33 +0100
committerChocobozzz <me@florianbigard.com>2019-10-28 09:37:33 +0100
commit42aac9fcfc837ddd60ac304a6e0f54b6e0e7a8e0 (patch)
tree3f96dc096b5952f63adbfc60823cd396ec766f53 /client/src/assets
parentf003ef1b54c3eedcc722e00c6a526f2368dd5885 (diff)
downloadPeerTube-42aac9fcfc837ddd60ac304a6e0f54b6e0e7a8e0.tar.gz
PeerTube-42aac9fcfc837ddd60ac304a6e0f54b6e0e7a8e0.tar.zst
PeerTube-42aac9fcfc837ddd60ac304a6e0f54b6e0e7a8e0.zip
Fix player captions menu
Diffstat (limited to 'client/src/assets')
-rw-r--r--client/src/assets/player/videojs-components/settings-menu-item.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/client/src/assets/player/videojs-components/settings-menu-item.ts b/client/src/assets/player/videojs-components/settings-menu-item.ts
index b738300ae..85172a18c 100644
--- a/client/src/assets/player/videojs-components/settings-menu-item.ts
+++ b/client/src/assets/player/videojs-components/settings-menu-item.ts
@@ -75,7 +75,6 @@ class SettingsMenuItem extends MenuItem {
75 this.settingsSubMenuEl_.appendChild(this.subMenu.menu.el_) 75 this.settingsSubMenuEl_.appendChild(this.subMenu.menu.el_)
76 this.update() 76 this.update()
77 this.bindClickEvents() 77 this.bindClickEvents()
78
79 }, 0) 78 }, 0)
80 }) 79 })
81 } 80 }
@@ -107,6 +106,10 @@ class SettingsMenuItem extends MenuItem {
107 // To update the sub menu value on click, setTimeout is needed because 106 // To update the sub menu value on click, setTimeout is needed because
108 // updating the value is not instant 107 // updating the value is not instant
109 setTimeout(() => this.update(event), 0) 108 setTimeout(() => this.update(event), 0)
109
110 // Seems like videojs adds a vjs-hidden class on the caption menu after a click
111 // We don't need it
112 this.subMenu.menu.removeClass('vjs-hidden')
110 } 113 }
111 114
112 /** 115 /**