Make WordPress Core

Changeset 28649


Ignore:
Timestamp:
06/02/2014 12:26:24 AM (10 years ago)
Author:
wonderboymusic
Message:

In WPPlaylistView::ended(), at the end of a playlist, set the index to 0 and call ->setCurrent() instead of ->loadCurrent() so that the first track is properly highlighted.

Fixes #28428.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/js/mediaelement/wp-playlist.js

    r28370 r28649  
    146146            } else {
    147147                this.index = 0;
    148                 this.current = this.tracks.at( this.index );
    149                 this.loadCurrent();
     148                this.setCurrent();
    150149            }
    151150        },
Note: See TracChangeset for help on using the changeset viewer.