summaryrefslogtreecommitdiff
path: root/static/playlist.js
diff options
context:
space:
mode:
Diffstat (limited to 'static/playlist.js')
-rw-r--r--static/playlist.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/static/playlist.js b/static/playlist.js
index 6f57075..b94de61 100644
--- a/static/playlist.js
+++ b/static/playlist.js
@@ -39,6 +39,9 @@ $(function(){
item.id = this.current_id;
this.current_id++;
var model = items.create(item);
+ if(items.indexOf(model) < 2) {
+ sound_hint(model);
+ }
},
addOne: function(item) {
var view = new PlaylistItemView({model: item});
@@ -60,6 +63,11 @@ $(function(){
items.remove(item);
this.render();
return next;
+ },
+ hintnext: function() {
+ var next = items.at(1);
+ if(next)
+ sound_hint(next);
}
});