fossfreedom/rhythmweb — pull request #19 by dinoboy197 (2012-10-03 03:00:25+00:00)
Title: Add playlist selection sidebar

This is commit adds a toggleable lefthand playlist sidebar, which allows the user to select, view, and play the tracks included in any playlist predefined in Rhythmbox. It's a sizable commit, so please feel free to critique or suggest alternate implementations or changes.

The playlist sidebar is populated via AJAX, and updates regularly in case the user changes playlists in Rhythmbox. No edit capability is present, yet.

When a user clicks on a playlist, the tracks of the playlist are are loaded into the track listing, and then the user can double click on any of those tracks to start playing from that track in that playlist.

Whether the playlist sidebar is shown or hidden is remembered via a cookie, which prevents a jarring disappearance or appearance of the sidebar when the page performs it's standard full page refresh (maybe we won't need the full refresh in the future?)

I've also extracted the Javascript tap handler into it's own method so it can be reused.