Skip to content

Commit

Permalink
Merge branch 'feature/fix-menu-title' of github.com:coursera/video.js…
Browse files Browse the repository at this point in the history
… into coursera-feature/fix-menu-title
  • Loading branch information
heff committed Apr 18, 2014
2 parents 3bafdee + 9d25874 commit 4660573
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ CHANGELOG
* The UI now resets after a source change ([view](https://github.com/videojs/video.js/pull/1124))
* Now assuming smart CSS defaults for sliders to prevent reflow on player init ([view](https://github.com/videojs/video.js/pull/1122))
* Fixed the title element placement in menus [[view](https://github.com/videojs/video.js/pull/1114)]
* Fixed title support for menu buttons ([view](https

This comment has been minimized.

Copy link
@ange007

ange007 Apr 19, 2014

Contributor

There is no link.


--------------------

Expand Down
2 changes: 1 addition & 1 deletion src/js/menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}));
}
Expand Down
4 changes: 1 addition & 3 deletions test/unit/menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit 4660573

Please sign in to comment.