diff --git a/sections/ajax/similar_artists.php b/sections/ajax/similar_artists.php index dd8a3d05..58cea436 100644 --- a/sections/ajax/similar_artists.php +++ b/sections/ajax/similar_artists.php @@ -1,6 +1,7 @@ query(" SELECT @@ -13,7 +14,7 @@ JOIN artists_group AS ag ON ag.ArtistID=s2.ArtistID WHERE s1.ArtistID=".$artist_id." ORDER BY ass.Score DESC - LIMIT 14"); + LIMIT $artist_limit"); while(list($ArtistID, $Name, $Score) = $DB->next_record(MYSQLI_NUM, false)){ diff --git a/sections/artist/artist.php b/sections/artist/artist.php index 67658f8c..45a4d42d 100644 --- a/sections/artist/artist.php +++ b/sections/artist/artist.php @@ -803,7 +803,7 @@ function compare($X, $Y){
Similar Artist Map - + [Switch to Cloud]
' + name + ''); -// var item = $('
  • ' + name + '
  • '); + var item = $('
  • ' + name + '
  • '); $(item).click(function(e) { @@ -44,10 +50,8 @@ function addArtist(id, name, score) { } function addArtistMain(name) { - var item = $('
  • ' + name + '
  • '); - -// var item = $('
  • ' + name + '
  • '); - + var item = $('
  • ' + name + '
  • '); + $("#currentArtist").attr('href', 'artist.php?id=' + artistId); $("#currentArtist").text(artistName);