mirror of
https://github.com/videojs/video.js.git
synced 2024-11-26 08:51:09 +02:00
Adjusting menu to use title given in options
This commit is contained in:
parent
c7e35e51de
commit
9d258742c5
@ -131,7 +131,7 @@ vjs.MenuButton.prototype.createMenu = function(){
|
||||
if (this.options().title) {
|
||||
menu.contentEl().appendChild(vjs.createEl('li', {
|
||||
className: 'vjs-menu-title',
|
||||
innerHTML: vjs.capitalize(this.kind_),
|
||||
innerHTML: vjs.capitalize(this.options().title),
|
||||
tabindex: -1
|
||||
}));
|
||||
}
|
||||
|
@ -5,10 +5,8 @@ test('should place title list item into ul', function() {
|
||||
|
||||
player = PlayerTest.makePlayer();
|
||||
|
||||
vjs.MenuButton.prototype.kind_ = 'testTitle';
|
||||
|
||||
menuButton = new vjs.MenuButton(player, {
|
||||
'title': true
|
||||
'title': 'testTitle'
|
||||
});
|
||||
|
||||
var menuContentElement = menuButton.el().getElementsByTagName('UL')[0];
|
||||
|
Loading…
Reference in New Issue
Block a user