Permalink
Browse files

For non incremental playlists, just replace the whole track list. Sti…

…ll need to message this properly.
  • Loading branch information...
1 parent 9b8059b commit 94ae8cd242547a17a36e47685eff45aecff80272 @jwheare committed Dec 21, 2009
Showing with 7 additions and 1 deletion.
  1. +3 −1 src/js/controllers/playlist.controller.js
  2. +4 −0 src/js/models/playlist.model.js
@@ -505,7 +505,9 @@ Playlist.prototype = {
});
playlist.save();
} else {
- // TODO replace all tracks
+ // console.dir(newPlaylist.tracks);
+ playlist.reset_tracks(newPlaylist.tracks);
+ playlist.reload();
}
// TODO message that shit
}
@@ -178,6 +178,10 @@ Playlist.prototype = {
this.options.onUnload.call(this);
}
},
+ reload: function () {
+ this.unload();
+ this.load();
+ },
/**
* Build a DOMElement for the Playlist
* TODO this is view layer stuff

0 comments on commit 94ae8cd

Please sign in to comment.