summaryrefslogtreecommitdiff
path: root/static/playlist.js
diff options
context:
space:
mode:
Diffstat (limited to 'static/playlist.js')
-rw-r--r--static/playlist.js5
1 files changed, 1 insertions, 4 deletions
diff --git a/static/playlist.js b/static/playlist.js
index 45a4a07..70149b3 100644
--- a/static/playlist.js
+++ b/static/playlist.js
@@ -51,12 +51,9 @@ $(function(){
addOne: function(item) {
var view = new PlaylistItemView({model: item});
var el = view.render().el;
- if(item.attributes.nocache)
- $(el).addClass('nocache');
$('#playlist').append(el);
- if(item.attributes.cache !== undefined || item.attributes.nocache !== undefined) {
+ if(item.attributes.cache !== undefined) {
delete item.attributes.cache;
- delete item.attributes.nocache;
item.save();
}
},