# HG changeset patch # User František Kučera # Date 1235928584 -3600 # Node ID 22cc28d200f3d0434d053a4771354ac6e9036d4c # Parent 63d0f3ef8ca92d1da1912f2818c72617e2f7b67f Přidání tlačítka pro rozbalení a sbalení tabulky. diff -r 63d0f3ef8ca9 -r 22cc28d200f3 java/HrisniciSpameri/web/filtr.jspx --- a/java/HrisniciSpameri/web/filtr.jspx Sun Mar 01 17:45:45 2009 +0100 +++ b/java/HrisniciSpameri/web/filtr.jspx Sun Mar 01 18:29:44 2009 +0100 @@ -8,6 +8,18 @@


+

-
diff -r 63d0f3ef8ca9 -r 22cc28d200f3 java/HrisniciSpameri/web/funkce.js --- a/java/HrisniciSpameri/web/funkce.js Sun Mar 01 17:45:45 2009 +0100 +++ b/java/HrisniciSpameri/web/funkce.js Sun Mar 01 18:29:44 2009 +0100 @@ -11,3 +11,20 @@ prvek.style.display = "none"; } } + +function rozbalNeboZabal(idElementu, vyska, idTlacitka, textZabalit, textRozbalit) +{ + prvek = document.getElementById(idElementu); + tlacitko = document.getElementById(idTlacitka); + + if (prvek.style.maxHeight == "" || prvek.style.maxHeight == vyska) + { + prvek.style.maxHeight = "1000000px"; + tlacitko.innerHTML = textZabalit; + } + else + { + prvek.style.maxHeight = vyska; + tlacitko.innerHTML = textRozbalit; + } +} diff -r 63d0f3ef8ca9 -r 22cc28d200f3 java/HrisniciSpameri/web/souhrn.jspx --- a/java/HrisniciSpameri/web/souhrn.jspx Sun Mar 01 17:45:45 2009 +0100 +++ b/java/HrisniciSpameri/web/souhrn.jspx Sun Mar 01 18:29:44 2009 +0100 @@ -15,7 +15,7 @@

Filtr

-

Denní souhrn

+

Denní souhrn

diff -r 63d0f3ef8ca9 -r 22cc28d200f3 java/HrisniciSpameri/web/styl.css --- a/java/HrisniciSpameri/web/styl.css Sun Mar 01 17:45:45 2009 +0100 +++ b/java/HrisniciSpameri/web/styl.css Sun Mar 01 18:29:44 2009 +0100 @@ -82,4 +82,5 @@ margin-top: 2px; padding-left: 10px; padding-right: 10px; + width: 100px; } \ No newline at end of file diff -r 63d0f3ef8ca9 -r 22cc28d200f3 java/HrisniciSpameri/web/tabulkaSouhrnu.jspx --- a/java/HrisniciSpameri/web/tabulkaSouhrnu.jspx Sun Mar 01 17:45:45 2009 +0100 +++ b/java/HrisniciSpameri/web/tabulkaSouhrnu.jspx Sun Mar 01 18:29:44 2009 +0100 @@ -36,4 +36,5 @@ +

Rozbalit

\ No newline at end of file