1
0
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:
Jon Wong 2014-04-03 23:35:15 -07:00
parent c7e35e51de
commit 9d258742c5
2 changed files with 2 additions and 4 deletions

View File

@ -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
}));
}

View File

@ -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];