diff options
author | thlo <t.lohmar@gmx.de> | 2013-02-03 20:36:52 +0100 |
---|---|---|
committer | thlo <t.lohmar@gmx.de> | 2013-02-03 20:36:52 +0100 |
commit | 845ac6d57331358abf2ac9024de774378c00bbed (patch) | |
tree | 359de84a1148d9c2babc2071b8967a210fd49aff /smarttv-client/Javascript/Data.js | |
parent | c81227a97c5cabc1ef61bac08fa8654e0961d95a (diff) | |
download | vdr-plugin-smarttvweb-845ac6d57331358abf2ac9024de774378c00bbed.tar.gz vdr-plugin-smarttvweb-845ac6d57331358abf2ac9024de774378c00bbed.tar.bz2 |
4:3 Button.
Trickplay for PES recordings and other files (no TS recordings yet).
Delete Recordings.
Parsing RSS enclosure url.
Diffstat (limited to 'smarttv-client/Javascript/Data.js')
-rwxr-xr-x | smarttv-client/Javascript/Data.js | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/smarttv-client/Javascript/Data.js b/smarttv-client/Javascript/Data.js index 03b7a31..edc2a05 100755 --- a/smarttv-client/Javascript/Data.js +++ b/smarttv-client/Javascript/Data.js @@ -4,6 +4,12 @@ var Data = folderList : [],
};
+Array.prototype.remove = function(from, to) {
+ var rest = this.slice((to || from) + 1 || this.length);
+ this.length = from < 0 ? this.length + from : from;
+ return this.push.apply(this, rest);
+};
+
Data.reset = function() {
this.assets = null;
this.assets = new Item;
@@ -71,7 +77,9 @@ Data.getVideoCount = function() { return this.folderList[this.folderList.length-1].item.childs.length;
};
-
+Data.deleteElm = function (pos) {
+ Data.getCurrentItem().childs.remove(pos);
+};
//-----------------------------------------
function Item() {
this.title = "root";
|