diff options
author | Jon Bergli Heier <snakebite@jvnv.net> | 2012-12-14 22:37:37 +0100 |
---|---|---|
committer | Jon Bergli Heier <snakebite@jvnv.net> | 2012-12-14 22:37:37 +0100 |
commit | ff31f221715ce99cac131db466b6f727b6b1986c (patch) | |
tree | e332dd06211b50db87c6978412058117c3e8f9ff /static/playlist.js | |
parent | f5ecbedeeb9d1646bec19e6c4f207a5b0a319cb2 (diff) |
Changed and standardised layouts in all views.
Diffstat (limited to 'static/playlist.js')
-rw-r--r-- | static/playlist.js | 5 |
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(); } }, |