Page 1 of 1

Click on song name to play?

PostPosted: Sun Apr 28, 2013 4:58 am
by Lobsang
Hello,

This has probably been requested a number of times here, but I couldn't find it anywhere in the forums: Is it possible to play the song when clicking on the name? Clicking on the tiny [>] symbol is somewhat of a pain and the song name itself could be a nice link to playing that particular song.

Regards,
L

Re: Click on song name to play?

PostPosted: Tue Jun 25, 2013 8:35 pm
by stozher
.../jetty/XXXX/webapp/WEB-INF/jsp/main.jsp (search for "child.title"):
Code: Select all
<span title="${child.title}"><str:truncateNicely upper="${cutoff}">${fn:escapeXml(child.title)}</str:truncateNicely></span>

replace with:
Code: Select all
<a href="javascript:noop()" onclick="top.playQueue.onPlay(${child.id});"><span title="${child.title}"><str:truncateNicely upper="${cutoff}">${fn:escapeXml(child.title)}</str:truncateNicely></span></a>