From 9c5a6f265e54fe921d29be95ec580fc3aecf484c Mon Sep 17 00:00:00 2001 From: Techywarrior Date: Mon, 8 Apr 2013 13:46:59 -0700 Subject: [PATCH 1/2] added base playlist support functions --- dashboard-ui/scripts/playlist.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 dashboard-ui/scripts/playlist.js diff --git a/dashboard-ui/scripts/playlist.js b/dashboard-ui/scripts/playlist.js new file mode 100644 index 000000000..75622452e --- /dev/null +++ b/dashboard-ui/scripts/playlist.js @@ -0,0 +1,18 @@ +var PlayList = { + + queue: Array(), + + addItem: function (item) { + PlayList.queue.push(item); + }, + + removeItem: function (index) { + PlayList.queue.splice(index, 1); + }, + + playItem: function (index) { + MediaPlayer.play(PlayList.queue[index]); + PlayList.queue.shift(); + } + +}; \ No newline at end of file From 685352cc0996587fee839aba90ff1779284271a7 Mon Sep 17 00:00:00 2001 From: Techywarrior Date: Mon, 8 Apr 2013 13:58:21 -0700 Subject: [PATCH 2/2] movies tabs on boxset page --- dashboard-ui/boxset.html | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/dashboard-ui/boxset.html b/dashboard-ui/boxset.html index b7f5de2d0..7e00fd8ef 100644 --- a/dashboard-ui/boxset.html +++ b/dashboard-ui/boxset.html @@ -7,6 +7,15 @@