Bonus tracks, user preferred media types
This commit is contained in:
@@ -230,4 +230,8 @@ $('.add-album').live 'click', ->
|
||||
item['artist'] = artist
|
||||
item['album'] = album.name
|
||||
_player.addTracks album.tracks.album
|
||||
for item in album.tracks.bonus
|
||||
item['artist'] = artist
|
||||
item['album'] = album.name
|
||||
_player.addTracks album.tracks.bonus
|
||||
false
|
||||
|
||||
@@ -51,38 +51,6 @@ class window.Search
|
||||
$('.suggestions').hide()
|
||||
false
|
||||
|
||||
showArtistPics: (pics) ->
|
||||
$('.artist_loading.ok, .artist_pics').show()
|
||||
for pic in pics
|
||||
if @pics.indexOf(pic) == -1
|
||||
@pics.push(pic);
|
||||
$('.artist_pics').append '
|
||||
<div class="pic">
|
||||
<img src="' +pic+ '" alt=""/>
|
||||
</div>'
|
||||
false
|
||||
|
||||
showError: ->
|
||||
$('.artist_loading.ok, .artist_pics').hide()
|
||||
$('.artist_loading.failed').show()
|
||||
@pics = []
|
||||
|
||||
|
||||
$('.search').live 'click', ->
|
||||
if $('.pulldown').css('display') is 'none'
|
||||
$('.pulldown').width $('.data-container').width() - 50
|
||||
$('.pulldown').height 300#38
|
||||
$('.pulldown').slideDown 'fast', ->
|
||||
data = '<div class="search-container">'+$('.subpages .search-container').html()+'</div>'
|
||||
_pages.renderSearch _beathaven.localizeHTML $(data)
|
||||
_beathaven.adjustSizes()
|
||||
_beathaven.redrawScrollbar()
|
||||
else
|
||||
$('.pulldown').slideUp 'fast', ->
|
||||
$('.pulldown').height 0
|
||||
_beathaven.adjustSizes()
|
||||
_beathaven.redrawScrollbar()
|
||||
false
|
||||
$('#search-form').live 'submit', ->
|
||||
$('#autocomplete-container').remove()
|
||||
_search.loadArtistData $('#search').val()
|
||||
|
||||
Reference in New Issue
Block a user