X-Git-Url: http://gitweb.fperrin.net/?p=djsite.git;a=blobdiff_plain;f=quotes%2Fstatic%2Fquotes%2Fquotes.js;h=4ae5cd99b868773ac4f6d0116f87abcccb3f1f80;hp=ea4ba8ae8bf5715ccc108cd59af471e6954c8567;hb=13c2e4fc8a5506cfa074c06335a73d28a173aba9;hpb=471c53df73726601ffdbefc3f709ab5b6cb381ff diff --git a/quotes/static/quotes/quotes.js b/quotes/static/quotes/quotes.js index ea4ba8a..4ae5cd9 100644 --- a/quotes/static/quotes/quotes.js +++ b/quotes/static/quotes/quotes.js @@ -1,9 +1,13 @@ function showDetails(id) { - document.getElementById(id).style.display = 'block'; + document.getElementById(id).style.height = 'auto'; + // document.getElementById(id).style.visibility = 'visible'; + // document.getElementById(id).style.opacity = '1'; document.getElementById(id + '_button').style.display = 'none'; } function hideDetails(id) { - document.getElementById(id).style.display = 'none'; + document.getElementById(id).style.maxHeight = '0'; + // document.getElementById(id).style.opacity = '0'; + // document.getElementById(id).style.visibility = 'hidden'; document.getElementById(id + '_button').style.display = 'block'; }