play/play — pull request #161 by joeyw (2012-05-07 20:41:54+00:00)
Title: Fix bugs introduced by realtime queue updates. Fixes #151.

While implementing pusher I overlooked determining the current page that any
web client is viewing. Any queue changes are broadcast and forcefully change
the client to the queue listing page even if they are viewing history, adding
songs or viewing any other page.

This commit changes the behaviour to only update the queue when the user is
viewing the queue.

data-page attribute has been added to #queue-results container. Pages use their
api path for names. queue is queue, history is history, artist is artist, etc.