From 2aa7e9298728afece835b8c09abc8da9165890a3 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Sun, 1 Dec 2013 11:09:05 -0500 Subject: [PATCH] add missing files --- dashboard-ui/livetvrecording.html | 18 ++++++++++++++++++ dashboard-ui/scripts/livetvrecording.js | 19 +++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 dashboard-ui/livetvrecording.html create mode 100644 dashboard-ui/scripts/livetvrecording.js diff --git a/dashboard-ui/livetvrecording.html b/dashboard-ui/livetvrecording.html new file mode 100644 index 0000000000..75964f19c2 --- /dev/null +++ b/dashboard-ui/livetvrecording.html @@ -0,0 +1,18 @@ + + + + Media Browser + + +
+ +
+
+
+ + diff --git a/dashboard-ui/scripts/livetvrecording.js b/dashboard-ui/scripts/livetvrecording.js new file mode 100644 index 0000000000..812f47f49e --- /dev/null +++ b/dashboard-ui/scripts/livetvrecording.js @@ -0,0 +1,19 @@ +function deleteRecording(page, id) { + + Dashboard.confirm("Are you sure you wish to delete this recording?", "Confirm Recording Deletion", function (result) { + + if (result) { + + Dashboard.showLoadingMsg(); + + ApiClient.deleteLiveTvRecording(id).done(function () { + + Dashboard.alert('Recording deleted'); + + reload(page); + }); + } + + }); +} +