From 6d17646d702e623b51f3fbb13583b1efab19db0d Mon Sep 17 00:00:00 2001
From: "Robert J. Newmark" <newmark@L3Jane.local>
Date: Sat, 24 Sep 2011 20:01:53 +0100
Subject: [PATCH] didn't call 25 on MostPlayed

---
 server/djrandom/frontend/static/js/djr.min.js    | 2 +-
 server/djrandom/frontend/static/js/djr/player.js | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/server/djrandom/frontend/static/js/djr.min.js b/server/djrandom/frontend/static/js/djr.min.js
index a9f64f5..1e0fb84 100644
--- a/server/djrandom/frontend/static/js/djr.min.js
+++ b/server/djrandom/frontend/static/js/djr.min.js
@@ -17,4 +17,4 @@ b);d.removeChunk(b)});e.find(".chunk_inner .song").hover(function(){$(this).find
 djr.Player.prototype.play=function(a){djr.debug("play "+a);this.cur_song&&(this.old_songs.push(this.cur_song),this.old_songs.length>5&&this.old_songs.shift());this.cur_song=a;$(".song").removeClass("playing");$("#song_"+a).addClass("playing");this.player.jPlayer("setMedia",{mp3:"/dl/"+a}).jPlayer("play");var b=$("#song_"+a+" .artist").text(),c=$("#song_"+a+" .album").text();$("#jp_playlist_1").html($("#song_"+a+" .title").text()+"<br>"+b+"<br><small>"+c+"</small>");b="/album_image/"+escape(b)+"/"+
 escape(c);$("#albumart_fs").attr("src",b);$("#albumart_fs").fullBg();$("#albumart_fs").show();this.backend.nowPlaying(a,this.old_songs)};djr.Player.prototype.nextSong=function(){this.play(this.playlist.getNextSong(this.cur_song))};djr.Player.prototype.streamCurrentPlaylist=function(){};djr.state={backend:null,player:null};
 djr.init=function(){djr.state.backend=new djr.Backend;djr.state.player=new djr.Player(djr.state.backend,"#djr_player");$("#playlistClearBtn").click(function(){djr.state.player.clearPlaylist()});$("#playlistStreamBtn").click(function(){djr.state.player.streamCurrentPlaylist()});$("#playlistExtendBtn").click(function(){djr.state.player.extendCurrentPlaylist()});$("#playlistLast25").click(function(){djr.state.player.lastPlaylist(25)});$("#playlistRandom").click(function(){djr.state.player.randomPlaylist(25)});
-$("#playlistMost").click(function(){djr.state.player.mostPlayedPlaylist()});$("#albumart_fs").load(function(){$(this).fullBg();$(this).show()})};djr.player=function(){return djr.state.player};djr.debug=function(a){$("#debug").append(a+"<br>")};
+$("#playlistMost").click(function(){djr.state.player.mostPlayedPlaylist(25)});$("#albumart_fs").load(function(){$(this).fullBg();$(this).show()})};djr.player=function(){return djr.state.player};djr.debug=function(a){$("#debug").append(a+"<br>")};
diff --git a/server/djrandom/frontend/static/js/djr/player.js b/server/djrandom/frontend/static/js/djr/player.js
index 23d63c0..e2b07fb 100644
--- a/server/djrandom/frontend/static/js/djr/player.js
+++ b/server/djrandom/frontend/static/js/djr/player.js
@@ -307,7 +307,7 @@ djr.init = function () {
     djr.state.player.randomPlaylist(25);
   });
   $('#playlistMost').click(function() {
-    djr.state.player.mostPlayedPlaylist();
+    djr.state.player.mostPlayedPlaylist(25);
   });
 
   // Set the album art image to auto-fullscreen on load.
-- 
GitLab