summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRolf Ahrenberg <Rolf.Ahrenberg@sci.fi>2011-03-11 13:38:06 (GMT)
committerDieter Hametner <dh (plus) vdr (at) gekrumbel (dot) de>2011-03-20 17:47:43 (GMT)
commit0e21c493ffc667c7d52ff555376acc5d05f612c6 (patch)
treed0d6f9f2bc9472fa39234dadf75b7c0a3b046bd9
parent964cd42ae44f820a1700981b74250408b688d81e (diff)
downloadvdr-plugin-live-0e21c493ffc667c7d52ff555376acc5d05f612c6.tar.gz
vdr-plugin-live-0e21c493ffc667c7d52ff555376acc5d05f612c6.tar.bz2
Added expand/collapse all folders functionality into recordings page.
-rw-r--r--i18n-generated.h70
-rw-r--r--pages/recordings.ecpp37
-rw-r--r--po/ca_ES.po6
-rw-r--r--po/cs_CZ.po6
-rw-r--r--po/da_DK.po6
-rw-r--r--po/de_DE.po6
-rw-r--r--po/el_GR.po6
-rw-r--r--po/es_ES.po6
-rw-r--r--po/et_EE.po6
-rw-r--r--po/fi_FI.po6
-rw-r--r--po/fr_FR.po6
-rw-r--r--po/hr_HR.po6
-rw-r--r--po/hu_HU.po6
-rw-r--r--po/it_IT.po6
-rw-r--r--po/lt_LT.po6
-rw-r--r--po/nl_NL.po6
-rw-r--r--po/nn_NO.po6
-rw-r--r--po/pl_PL.po6
-rw-r--r--po/pt_PT.po6
-rw-r--r--po/ro_RO.po6
-rw-r--r--po/ru_RU.po6
-rw-r--r--po/sk_SK.po6
-rw-r--r--po/sl_SI.po6
-rw-r--r--po/sv_SE.po6
-rw-r--r--po/tr_TR.po6
25 files changed, 245 insertions, 0 deletions
diff --git a/i18n-generated.h b/i18n-generated.h
index ef71a1e..ef17c97 100644
--- a/i18n-generated.h
+++ b/i18n-generated.h
@@ -8271,6 +8271,76 @@ const tI18nPhrase Phrases[] = {
"",
#endif
},
+ { "Expand all folders",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "Avaa kaikki kansiot",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+#if VDRVERSNUM >= 10302
+ "",
+#endif
+#if VDRVERSNUM >= 10307
+ "",
+#endif
+#if VDRVERSNUM >= 10313
+ "",
+#endif
+#if VDRVERSNUM >= 10316
+ "",
+#endif
+#if VDRVERSNUM >= 10342
+ "",
+#endif
+#if VDRVERSNUM >= 10502
+ "",
+#endif
+ },
+ { "Collapse all folders",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "Sulje kaikki kansiot",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+ "",
+#if VDRVERSNUM >= 10302
+ "",
+#endif
+#if VDRVERSNUM >= 10307
+ "",
+#endif
+#if VDRVERSNUM >= 10313
+ "",
+#endif
+#if VDRVERSNUM >= 10316
+ "",
+#endif
+#if VDRVERSNUM >= 10342
+ "",
+#endif
+#if VDRVERSNUM >= 10502
+ "",
+#endif
+ },
{ "Delete this recording from hard disc!",
"Diese Aufnahme von der Festplatte löschen!",
"",
diff --git a/pages/recordings.ecpp b/pages/recordings.ecpp
index 5c255d1..3457e92 100644
--- a/pages/recordings.ecpp
+++ b/pages/recordings.ecpp
@@ -86,6 +86,40 @@ diskinfo = cString::sprintf("%s %d%% - %2d:%02d %s", trVDR("Disk"), Percent, H
{
window.location.href = "recordings.html?sort=<$ currentSort $>&filter=" + encodeURIComponent(filter.value);
}
+ function ExpandAll()
+ {
+ recordingNodes = window.document.getElementsBySelector("ul.recordingslist");
+ for (idx = 0; idx < recordingNodes.length; idx++) {
+ if (recordingNodes[idx].parentNode.className != 'recordings') {
+ recordingNodes[idx].style.display = 'block';
+ }
+ }
+ expandNodes = window.document.getElementsBySelector("img.recording_expander");
+ for (idx = 0; idx < expandNodes.length; idx++) {
+ expandNodes[idx].src = "img/minus.png";
+ }
+ folderNodes = window.document.getElementsBySelector("img.recording_folder");
+ for (idx = 0; idx < folderNodes.length; idx++) {
+ folderNodes[idx].src = "img/folder_open.png";
+ }
+ }
+ function CollapseAll()
+ {
+ recordingNodes = window.document.getElementsBySelector("ul.recordingslist");
+ for (idx = 0; idx < recordingNodes.length; idx++) {
+ if (recordingNodes[idx].parentNode.className != 'recordings') {
+ recordingNodes[idx].style.display = 'none';
+ }
+ }
+ expandNodes = window.document.getElementsBySelector("img.recording_expander");
+ for (idx = 0; idx < expandNodes.length; idx++) {
+ expandNodes[idx].src = "img/plus.png";
+ }
+ folderNodes = window.document.getElementsBySelector("img.recording_folder");
+ for (idx = 0; idx < folderNodes.length; idx++) {
+ folderNodes[idx].src = "img/folder_closed.png";
+ }
+ }
//--></script>
</head>
<body>
@@ -232,6 +266,9 @@ for (recIter = recItems.begin(); recIter != recItems.end(); ++recIter) {
<%cpp>
#endif
</%cpp>
+<span class="sep">|</span>
+<img onclick="ExpandAll()" src="<$ LiveSetup().GetThemedLink("img", "plus.png") $>" alt="" <& tooltip.hint text=(tr("Expand all folders")) &>/>
+<img onclick="CollapseAll()" src="<$ LiveSetup().GetThemedLink("img", "minus.png") $>" alt="" <& tooltip.hint text=(tr("Collapse all folders")) &>/>
<br />
<%cpp> } </%cpp>
</%def>
diff --git a/po/ca_ES.po b/po/ca_ES.po
index 649686c..c8bacf4 100644
--- a/po/ca_ES.po
+++ b/po/ca_ES.po
@@ -730,6 +730,12 @@ msgstr ""
msgid "Look in recordings titles and subtitles for the given string and display only the matching ones. You may also use perl compatible regular expressions (PCRE)."
msgstr ""
+msgid "Expand all folders"
+msgstr ""
+
+msgid "Collapse all folders"
+msgstr ""
+
msgid "Delete this recording from hard disc!"
msgstr ""
diff --git a/po/cs_CZ.po b/po/cs_CZ.po
index 59e9085..50e7d2d 100644
--- a/po/cs_CZ.po
+++ b/po/cs_CZ.po
@@ -728,6 +728,12 @@ msgstr ""
msgid "Look in recordings titles and subtitles for the given string and display only the matching ones. You may also use perl compatible regular expressions (PCRE)."
msgstr ""
+msgid "Expand all folders"
+msgstr ""
+
+msgid "Collapse all folders"
+msgstr ""
+
msgid "Delete this recording from hard disc!"
msgstr ""
diff --git a/po/da_DK.po b/po/da_DK.po
index 3e21e6e..ef5113a 100644
--- a/po/da_DK.po
+++ b/po/da_DK.po
@@ -728,6 +728,12 @@ msgstr ""
msgid "Look in recordings titles and subtitles for the given string and display only the matching ones. You may also use perl compatible regular expressions (PCRE)."
msgstr ""
+msgid "Expand all folders"
+msgstr ""
+
+msgid "Collapse all folders"
+msgstr ""
+
msgid "Delete this recording from hard disc!"
msgstr ""
diff --git a/po/de_DE.po b/po/de_DE.po
index 2a0ba2d..34be520 100644
--- a/po/de_DE.po
+++ b/po/de_DE.po
@@ -731,6 +731,12 @@ msgstr "Filter"
msgid "Look in recordings titles and subtitles for the given string and display only the matching ones. You may also use perl compatible regular expressions (PCRE)."
msgstr "Suche in Aufname-Titel und Untertitel nach dem angegebenen Wort und zeige nur die zutreffenden an. Es sind auch Perl kompatible Reguläre Ausdrücke (PCRE) erlaubt."
+msgid "Expand all folders"
+msgstr ""
+
+msgid "Collapse all folders"
+msgstr ""
+
msgid "Delete this recording from hard disc!"
msgstr "Diese Aufnahme von der Festplatte löschen!"
diff --git a/po/el_GR.po b/po/el_GR.po
index 6f86112..836f598 100644
--- a/po/el_GR.po
+++ b/po/el_GR.po
@@ -728,6 +728,12 @@ msgstr ""
msgid "Look in recordings titles and subtitles for the given string and display only the matching ones. You may also use perl compatible regular expressions (PCRE)."
msgstr ""
+msgid "Expand all folders"
+msgstr ""
+
+msgid "Collapse all folders"
+msgstr ""
+
msgid "Delete this recording from hard disc!"
msgstr ""
diff --git a/po/es_ES.po b/po/es_ES.po
index a0926a1..ee594b7 100644
--- a/po/es_ES.po
+++ b/po/es_ES.po
@@ -728,6 +728,12 @@ msgstr ""
msgid "Look in recordings titles and subtitles for the given string and display only the matching ones. You may also use perl compatible regular expressions (PCRE)."
msgstr ""
+msgid "Expand all folders"
+msgstr ""
+
+msgid "Collapse all folders"
+msgstr ""
+
msgid "Delete this recording from hard disc!"
msgstr ""
diff --git a/po/et_EE.po b/po/et_EE.po
index 3095430..7484a88 100644
--- a/po/et_EE.po
+++ b/po/et_EE.po
@@ -728,6 +728,12 @@ msgstr ""
msgid "Look in recordings titles and subtitles for the given string and display only the matching ones. You may also use perl compatible regular expressions (PCRE)."
msgstr ""
+msgid "Expand all folders"
+msgstr ""
+
+msgid "Collapse all folders"
+msgstr ""
+
msgid "Delete this recording from hard disc!"
msgstr ""
diff --git a/po/fi_FI.po b/po/fi_FI.po
index b8a5269..6c06723 100644
--- a/po/fi_FI.po
+++ b/po/fi_FI.po
@@ -728,6 +728,12 @@ msgstr "Suodata"
msgid "Look in recordings titles and subtitles for the given string and display only the matching ones. You may also use perl compatible regular expressions (PCRE)."
msgstr "Suodata tallenteet nimi- ja kuvauskentistä hakusanan avulla. Voit käyttää myös Perl-yhteensopivia säännöllisiä lausekkeita (PCRE)."
+msgid "Expand all folders"
+msgstr "Avaa kaikki kansiot"
+
+msgid "Collapse all folders"
+msgstr "Sulje kaikki kansiot"
+
msgid "Delete this recording from hard disc!"
msgstr "Poista tallenne kovalevyltä!"
diff --git a/po/fr_FR.po b/po/fr_FR.po
index fc000da..ea2c2ba 100644
--- a/po/fr_FR.po
+++ b/po/fr_FR.po
@@ -750,6 +750,12 @@ msgstr ""
msgid "Look in recordings titles and subtitles for the given string and display only the matching ones. You may also use perl compatible regular expressions (PCRE)."
msgstr ""
+msgid "Expand all folders"
+msgstr ""
+
+msgid "Collapse all folders"
+msgstr ""
+
msgid "Delete this recording from hard disc!"
msgstr ""
diff --git a/po/hr_HR.po b/po/hr_HR.po
index f321c81..6177fb3 100644
--- a/po/hr_HR.po
+++ b/po/hr_HR.po
@@ -729,6 +729,12 @@ msgstr ""
msgid "Look in recordings titles and subtitles for the given string and display only the matching ones. You may also use perl compatible regular expressions (PCRE)."
msgstr ""
+msgid "Expand all folders"
+msgstr ""
+
+msgid "Collapse all folders"
+msgstr ""
+
msgid "Delete this recording from hard disc!"
msgstr ""
diff --git a/po/hu_HU.po b/po/hu_HU.po
index fb0b7c9..911d55f 100644
--- a/po/hu_HU.po
+++ b/po/hu_HU.po
@@ -729,6 +729,12 @@ msgstr ""
msgid "Look in recordings titles and subtitles for the given string and display only the matching ones. You may also use perl compatible regular expressions (PCRE)."
msgstr ""
+msgid "Expand all folders"
+msgstr ""
+
+msgid "Collapse all folders"
+msgstr ""
+
msgid "Delete this recording from hard disc!"
msgstr ""
diff --git a/po/it_IT.po b/po/it_IT.po
index 182f185..9ff0fad 100644
--- a/po/it_IT.po
+++ b/po/it_IT.po
@@ -735,6 +735,12 @@ msgstr ""
msgid "Look in recordings titles and subtitles for the given string and display only the matching ones. You may also use perl compatible regular expressions (PCRE)."
msgstr ""
+msgid "Expand all folders"
+msgstr ""
+
+msgid "Collapse all folders"
+msgstr ""
+
msgid "Delete this recording from hard disc!"
msgstr "Elimina questa registrazione dal disco fisso!"
diff --git a/po/lt_LT.po b/po/lt_LT.po
index deb75e6..65b20c8 100644
--- a/po/lt_LT.po
+++ b/po/lt_LT.po
@@ -730,6 +730,12 @@ msgstr ""
msgid "Look in recordings titles and subtitles for the given string and display only the matching ones. You may also use perl compatible regular expressions (PCRE)."
msgstr ""
+msgid "Expand all folders"
+msgstr ""
+
+msgid "Collapse all folders"
+msgstr ""
+
msgid "Delete this recording from hard disc!"
msgstr "Ištrinti šį įrašą iš disko!"
diff --git a/po/nl_NL.po b/po/nl_NL.po
index b27187e..d3b20ff 100644
--- a/po/nl_NL.po
+++ b/po/nl_NL.po
@@ -745,6 +745,12 @@ msgstr ""
msgid "Look in recordings titles and subtitles for the given string and display only the matching ones. You may also use perl compatible regular expressions (PCRE)."
msgstr ""
+msgid "Expand all folders"
+msgstr ""
+
+msgid "Collapse all folders"
+msgstr ""
+
msgid "Delete this recording from hard disc!"
msgstr ""
diff --git a/po/nn_NO.po b/po/nn_NO.po
index daecdf5..556c007 100644
--- a/po/nn_NO.po
+++ b/po/nn_NO.po
@@ -729,6 +729,12 @@ msgstr ""
msgid "Look in recordings titles and subtitles for the given string and display only the matching ones. You may also use perl compatible regular expressions (PCRE)."
msgstr ""
+msgid "Expand all folders"
+msgstr ""
+
+msgid "Collapse all folders"
+msgstr ""
+
msgid "Delete this recording from hard disc!"
msgstr ""
diff --git a/po/pl_PL.po b/po/pl_PL.po
index 99a656a..95c396c 100644
--- a/po/pl_PL.po
+++ b/po/pl_PL.po
@@ -728,6 +728,12 @@ msgstr "Filtr"
msgid "Look in recordings titles and subtitles for the given string and display only the matching ones. You may also use perl compatible regular expressions (PCRE)."
msgstr "Poka¿ nagrania zgodne z wpisanym wyra¿eniem (mo¿na u¿ywaæ tak¿e wyra¿eñ regularnych typu PERL)."
+msgid "Expand all folders"
+msgstr ""
+
+msgid "Collapse all folders"
+msgstr ""
+
msgid "Delete this recording from hard disc!"
msgstr "Usuñ to nagranie z twardego dysku!"
diff --git a/po/pt_PT.po b/po/pt_PT.po
index 9a0e486..250819f 100644
--- a/po/pt_PT.po
+++ b/po/pt_PT.po
@@ -728,6 +728,12 @@ msgstr ""
msgid "Look in recordings titles and subtitles for the given string and display only the matching ones. You may also use perl compatible regular expressions (PCRE)."
msgstr ""
+msgid "Expand all folders"
+msgstr ""
+
+msgid "Collapse all folders"
+msgstr ""
+
msgid "Delete this recording from hard disc!"
msgstr ""
diff --git a/po/ro_RO.po b/po/ro_RO.po
index 02e332e..6d76313 100644
--- a/po/ro_RO.po
+++ b/po/ro_RO.po
@@ -729,6 +729,12 @@ msgstr ""
msgid "Look in recordings titles and subtitles for the given string and display only the matching ones. You may also use perl compatible regular expressions (PCRE)."
msgstr ""
+msgid "Expand all folders"
+msgstr ""
+
+msgid "Collapse all folders"
+msgstr ""
+
msgid "Delete this recording from hard disc!"
msgstr ""
diff --git a/po/ru_RU.po b/po/ru_RU.po
index fc14c36..6171085 100644
--- a/po/ru_RU.po
+++ b/po/ru_RU.po
@@ -728,6 +728,12 @@ msgstr ""
msgid "Look in recordings titles and subtitles for the given string and display only the matching ones. You may also use perl compatible regular expressions (PCRE)."
msgstr ""
+msgid "Expand all folders"
+msgstr ""
+
+msgid "Collapse all folders"
+msgstr ""
+
msgid "Delete this recording from hard disc!"
msgstr ""
diff --git a/po/sk_SK.po b/po/sk_SK.po
index cc9633f..12a0258 100644
--- a/po/sk_SK.po
+++ b/po/sk_SK.po
@@ -729,6 +729,12 @@ msgstr "Filter"
msgid "Look in recordings titles and subtitles for the given string and display only the matching ones. You may also use perl compatible regular expressions (PCRE)."
msgstr "Pozrite sa na nahrávky titulov a titulky pre daný re»azec a zobrazi» iba tie vyhovujúce. Mô¾ete pou¾i» kompatibilné perl regulárne výrazy (PCRE)."
+msgid "Expand all folders"
+msgstr ""
+
+msgid "Collapse all folders"
+msgstr ""
+
msgid "Delete this recording from hard disc!"
msgstr "Vymaza» nahrávku z HDD"
diff --git a/po/sl_SI.po b/po/sl_SI.po
index de9164c..e2bfec2 100644
--- a/po/sl_SI.po
+++ b/po/sl_SI.po
@@ -729,6 +729,12 @@ msgstr ""
msgid "Look in recordings titles and subtitles for the given string and display only the matching ones. You may also use perl compatible regular expressions (PCRE)."
msgstr ""
+msgid "Expand all folders"
+msgstr ""
+
+msgid "Collapse all folders"
+msgstr ""
+
msgid "Delete this recording from hard disc!"
msgstr ""
diff --git a/po/sv_SE.po b/po/sv_SE.po
index 763629e..4c3458e 100644
--- a/po/sv_SE.po
+++ b/po/sv_SE.po
@@ -729,6 +729,12 @@ msgstr ""
msgid "Look in recordings titles and subtitles for the given string and display only the matching ones. You may also use perl compatible regular expressions (PCRE)."
msgstr ""
+msgid "Expand all folders"
+msgstr ""
+
+msgid "Collapse all folders"
+msgstr ""
+
msgid "Delete this recording from hard disc!"
msgstr ""
diff --git a/po/tr_TR.po b/po/tr_TR.po
index f98e01b..4c9dc59 100644
--- a/po/tr_TR.po
+++ b/po/tr_TR.po
@@ -729,6 +729,12 @@ msgstr ""
msgid "Look in recordings titles and subtitles for the given string and display only the matching ones. You may also use perl compatible regular expressions (PCRE)."
msgstr ""
+msgid "Expand all folders"
+msgstr ""
+
+msgid "Collapse all folders"
+msgstr ""
+
msgid "Delete this recording from hard disc!"
msgstr ""