summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Wieninger <cwieninger (at) gmx (dot) de>2007-04-25 13:39:35 +0000
committerChristian Wieninger <cwieninger (at) gmx (dot) de>2007-04-25 13:39:35 +0000
commit0bdb3b4ad14166ed23ac4a01c47ff9d6df5767c3 (patch)
tree3efa2e314c5e98bd42b3a493ad6d2b8e3239e8ad
parent06872b233d4c6525232d138cdd55f14e9e46aaa3 (diff)
downloadvdr-plugin-live-0bdb3b4ad14166ed23ac4a01c47ff9d6df5767c3.tar.gz
vdr-plugin-live-0bdb3b4ad14166ed23ac4a01c47ff9d6df5767c3.tar.bz2
- confirm deleting search timers
-rw-r--r--i18n.cpp22
-rw-r--r--pages/searchtimers.ecpp16
2 files changed, 36 insertions, 2 deletions
diff --git a/i18n.cpp b/i18n.cpp
index 7c76b1b..39882d9 100644
--- a/i18n.cpp
+++ b/i18n.cpp
@@ -2602,6 +2602,28 @@ const tI18nPhrase Phrases[] = {
"",
"",
},
+ { "Delete this search timer?", // English
+ "Diesen Suchtimer löschen?", // Deutsch
+ "", // Slovenski
+ "", // Italiano
+ "", // Nederlands
+ "", // Português
+ "", // Français
+ "", // Norsk
+ "", // Finnish
+ "", // Polski
+ "", // Español
+ "", // Greek
+ "", // Svenska
+ "", // Românã
+ "", // Magyar
+ "", // Català
+ "", // Russian
+ "", // Hrvatski
+ "", // Eesti
+ "", // Dansk
+ "", // Czech
+ },
{ "Cancel",
"Abbrechen",
"",
diff --git a/pages/searchtimers.ecpp b/pages/searchtimers.ecpp
index 674bf7b..1332b9a 100644
--- a/pages/searchtimers.ecpp
+++ b/pages/searchtimers.ecpp
@@ -27,6 +27,18 @@ using namespace std;
<& pageelems.doc_type &>
<html>
<head>
+ <& pageelems.ajax_js &>
+ <script type="text/javascript"><!--
+
+ function confirmdel(deltarget)
+ {
+ Check = confirm("<$ tr("Delete this search timer?") $>");
+ if (Check == true)
+ self.location.href = deltarget;
+ }
+
+ //--></script>
+
<title>VDR-Live - <$ pageTitle $></title>
<link rel="stylesheet" type="text/css" href="/styles.css" />
<& tooltip.javascript var=("domTT_styleClass") value=("domTTepg") &>
@@ -62,8 +74,8 @@ using namespace std;
<td><? timer->UseTime() ? timer->StopTimeFormatted() ?></td>
<td><a href="searchtimers.html?searchtimerid=<$ timer->Id() $>&action=toggle"><img src="/<$ timer->UseAsSearchTimer() ? "active" : "inactive" $>.png" alt="<$ tr("Toggle search timer actions (in)active") $>" <& tooltip.hint text=(tr("Toggle search timer actions (in)active")) &>/></a></td>
<td><a href="searchresults.html?searchtimerid=<$ timer->Id() $>"><img src="/search.png" border="0" alt="<$ tr("Browse search timer results") $>" <& tooltip.hint text=(tr("Browse search timer results")) &> ></a></td>
- <td><a href="edit_searchtimer.html?searchtimerid=<$ timer->Id() $>"><img src="/edit.png" alt="<$ tr("Edit search timer") $>" <& tooltip.hint text=(tr("Edit search timer")) &>/></a></td>
- <td><a href="searchtimers.html?searchtimerid=<$ timer->Id() $>&action=delete"><img src="/del.png" alt="<$ tr("Delete search timer") $>" <& tooltip.hint text=(tr("Delete search timer")) &>/></a></td>
+ <td><a href="edit_searchtimer.html?searchtimerid=<$ timer->Id() $>"><img src="/edit.png" alt="<$ tr("Edit search timer") $>" <& tooltip.hint text=(tr("Edit search timer")) &>/></a></td>
+ <td><a href="JavaScript:confirmdel('searchtimers.html?searchtimerid=<$ timer->Id() $>&action=delete')"><img src="/del.png" alt="<$ tr("Delete search timer") $>" <& tooltip.hint text=(tr("Delete search timer")) &>/></a></td>
<td class="border" style="border-right: 1px solid black"></td>
</tr>
<{