Skip to content

Commit

Permalink
Merge pull request mozilla-b2g#14075 from dominickuo/bug-911108-new
Browse files Browse the repository at this point in the history
Bug 911108 - [music] change the hash and option to mix page when the player is reset by the storages, r=huchengtw-moz
  • Loading branch information
dominickuo committed Dec 3, 2013
2 parents bcf883f + 93c4b75 commit 2758561
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions apps/music/js/music.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,13 @@ function init() {
if (typeof PlayerView !== 'undefined')
PlayerView.stop();

// Generally when the user select one of the tabs, it should trigger the
// css pseudo-class to highlight the selected tab, but here we manually
// select the mix page so we have to change the hash to it to trigger the
// css pseudo-class or the tab of mix page will not be highlighted.
// Also the option of the TabBar should be set to "mix" to sync with it.
window.location.hash = '#mix';
TabBar.option = 'mix';
ModeManager.start(MODE_TILES);
TilesView.hideSearch();
};
Expand Down

0 comments on commit 2758561

Please sign in to comment.