summaryrefslogtreecommitdiffstats
path: root/apps/media/js/playlist.js
diff options
context:
space:
mode:
authorRobin Appelman <icewind1991@gmail.com>2011-08-08 17:53:03 +0200
committerRobin Appelman <icewind1991@gmail.com>2011-08-08 17:53:03 +0200
commit8c34ea496ae8961c4aea29da67b2b1776034a2c4 (patch)
tree87c54e27645df52ca8c60ce0ca9c762dc287cfb3 /apps/media/js/playlist.js
parent2f95b829340369accb8b3f38034ecd38cfdf9c52 (diff)
downloadnextcloud-server-8c34ea496ae8961c4aea29da67b2b1776034a2c4.tar.gz
nextcloud-server-8c34ea496ae8961c4aea29da67b2b1776034a2c4.zip
initial work on the media player interface rework
it looks bad atm bu should work enough to be stylable
Diffstat (limited to 'apps/media/js/playlist.js')
-rw-r--r--apps/media/js/playlist.js10
1 files changed, 0 insertions, 10 deletions
diff --git a/apps/media/js/playlist.js b/apps/media/js/playlist.js
index a15c34f93f9..636ae29c555 100644
--- a/apps/media/js/playlist.js
+++ b/apps/media/js/playlist.js
@@ -10,19 +10,9 @@ PlayList.render=function(){
tr.removeClass('template');
tr.data('name',item.name);
tr.data('artist',item.artist);
- tr.data('album',item.album);
- tr.data('time',item.length);
- tr.data('plays',item.playcount);
tr.children('td.name').children('span').text(item.name);
tr.children('td.artist').text(item.artist);
tr.children('td.album').text(item.album);
- var secconds=(item.length%60);
- if(secconds<10){
- secconds='0'+secconds;
- }
- var length=Math.floor(item.length/60)+':'+secconds;
- tr.children('td.time').text(length);
- tr.children('td.plays').text(item.playcount);
tr.data('index',i);
tr.click(function(){
PlayList.play($(this).data('index'));