summaryrefslogtreecommitdiff
path: root/static
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2012-03-14 18:47:27 +0100
committerJon Bergli Heier <snakebite@jvnv.net>2012-03-14 18:47:27 +0100
commit510dbf0d713a36c933965666d66e788108cdd90c (patch)
treedf5ffcafc584814c5348a17f71ca88831cfd4ef1 /static
parente4792c42b4180d3779bf7d75c7e5ee6f41001d85 (diff)
Hint next song when (re)moving a song in the playlist.
Diffstat (limited to 'static')
-rw-r--r--static/init.js1
-rw-r--r--static/playlist.js2
2 files changed, 2 insertions, 1 deletions
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;