Merge branch 'master' of github.com:magnolia-fan/BeatHaven

This commit is contained in:
Hipster Hitman
2011-04-10 10:17:50 +04:00
9 changed files with 124 additions and 277 deletions
+4 -8
View File
@@ -1,12 +1,8 @@
$(function(){
$('.play').click(function(){
$.get('/listen/'+ $(this).parent().attr('id') +'/', function(res){
if (res.status == 'ok') {
$('#player audio').attr('src', res.data.url);
$('#player #artist').html(res.data.artist);
$('#player #title').html(res.data.track);
$('#player audio').play();
}
})
$('#player audio').attr('src', '/listen/'+ $(this).parent().attr('id')) +'/';
$('#player #artist').html($('h1.artist').html());
$('#player #title').html($(this).parent().find('.track-name').html());
$('#player audio').play();
})
})