Skip to content

Commit

Permalink
check for songs
Browse files Browse the repository at this point in the history
  • Loading branch information
Rayman committed Jun 16, 2014
1 parent 1652bf1 commit e363837
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion client/views/playlists.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ Template.playlistTabs.events = {
youtubeSearch(input.val());
},
'click button[data-toggle="clearResults"]': function(e) {

$("input.youtube-query").val("");
searchResults = null;
searchResultsDependency.changed();
Expand Down Expand Up @@ -217,6 +217,9 @@ Template.searchResults.error = function() {
};

Template.songs.songs = function() {
if (!this.songs)
return;

// get all users that play a song on this playlist
var users = Meteor.users.find({'profile.playing.playlist': this._id});
var indexes = _.groupBy(users.fetch(), function(u) {
Expand Down

0 comments on commit e363837

Please sign in to comment.