1
0
mirror of https://github.com/balkian/go5ears.git synced 2024-11-21 21:02:29 +00:00

Download link working

This commit is contained in:
J.Fernando Sánchez 2012-10-12 22:38:58 +02:00
parent 517acf4bce
commit aded1d0253
3 changed files with 8 additions and 1 deletions

View File

@ -75,3 +75,7 @@ text-align: center;
.hidden{
display:none;
}
.list-controls span {
cursor:pointer;
}

View File

@ -217,6 +217,9 @@ $(document).ready(function(){
return index+self.group() +" - "+self.title()+" ["+self.quality()+"]";
}, this);
self.downloadSong = function(){
window.open("/play?id="+self.id(), self.formattedName());
}
}

View File

@ -49,7 +49,7 @@
<span class="ui-icon ui-icon-play" data-bind="click: $root.playSong, visible: ! isPlaying()">Play</span>
<span class="ui-icon ui-icon-pause" data-bind="click: $root.pauseSong, visible: isPlaying()">Play</span>
<span class="ui-icon ui-icon-circle-plus" data-bind="click: $root.addSong">Add</span>
<span class="ui-icon ui-icon-arrowthickstop-1-s"></span>
<span class="ui-icon ui-icon-arrowthickstop-1-s" data-bind="click: downloadSong"></span>
</div>
<span class="list-name" data-bind="text: formattedName()">
Name - Title