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:
Родитель
afeb6ab371
Коммит
cc3c400b42
|
@ -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 );
|
||||
|
|
Загрузка…
Ссылка в новой задаче