From ff31f221715ce99cac131db466b6f727b6b1986c Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Fri, 14 Dec 2012 22:37:37 +0100 Subject: Changed and standardised layouts in all views. --- static/playlist.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'static/playlist.js') 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(); } }, -- cgit v1.2.3