Skip to content
Snippets Groups Projects
Commit 0c15ef55 authored by ale's avatar ale
Browse files

removed unused function

parent d1d5e509
No related branches found
No related tags found
No related merge requests found
......@@ -59,26 +59,6 @@ djr.setQuery = function(query) {
djr.doSearch(query);
};
djr.loadPlaylistHtml = function() {
var playlist = djr.state.player.curPlaylist;
$.ajax({url: '/fragment/songs',
data: {'h': playlist.join(',')},
dataType: 'html',
type: 'POST',
success: function(data, status, jqxhr) {
$('#resultsDiv').html(data);
$('.song_a').click(function() {
var sha1 = $(this).attr('id').substr(5);
djr.state.player.playSong(sha1);
});
$('.album_a').click(function() {
var album = $(this).text();
djr.setQuery('album:"' + album + '"');
});
}
});
};
djr.doSearch = function() {
$('#loading').show();
$.getJSON('/json/search', {'q': djr.getQuery()},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment