From 510dbf0d713a36c933965666d66e788108cdd90c Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Wed, 14 Mar 2012 18:47:27 +0100 Subject: Hint next song when (re)moving a song in the playlist. --- static/init.js | 1 + static/playlist.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'static') diff --git a/static/init.js b/static/init.js index 6a37be5..b45539c 100644 --- a/static/init.js +++ b/static/init.js @@ -101,6 +101,7 @@ $(document).ready(function() { model.save(); }); items.sort({silent: true}); + playlist.hintnext(); } }); }); diff --git a/static/playlist.js b/static/playlist.js index 18403c4..eabd56e 100644 --- a/static/playlist.js +++ b/static/playlist.js @@ -25,8 +25,8 @@ $(function(){ return false; }); $('a.delete', this.el).click(function() { - //var model = items.getByCid(model.cid); items.remove(model); + playlist.hintnext(); return false; }); return this; -- cgit v1.2.3