Bug 504337 - Port bug 497603 - "Pause" should change to "Play" in the context menu when the end of a video is reached; r=neil

This commit is contained in:
Jens Hatlak 2009-07-23 23:19:24 +02:00
Родитель afeb6ab371
Коммит cc3c400b42
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -319,8 +319,8 @@ nsContextMenu.prototype = {
initMediaPlayerItems : function () {
var onMedia = ( this.onVideo || this.onAudio );
// Several mutually exclusive items... play/pause, mute/unmute, show/hide
this.showItem( "context-media-play", onMedia && this.target.paused );
this.showItem( "context-media-pause", onMedia && !this.target.paused );
this.showItem( "context-media-play", onMedia && (this.target.paused || this.target.ended) );
this.showItem( "context-media-pause", onMedia && !this.target.paused && !this.target.ended );
this.showItem( "context-media-mute", onMedia && !this.target.muted );
this.showItem( "context-media-unmute", onMedia && this.target.muted );
this.showItem( "context-media-showcontrols", onMedia && !this.target.controls );