diff options
| author | Rob Peters <makitso@gmail.com> | 2012-01-28 00:10:36 +0000 |
|---|---|---|
| committer | Rob Peters <makitso@gmail.com> | 2012-01-28 00:10:36 +0000 |
| commit | 4556abfc256c4251794b8832a2d9f6cba58d4690 (patch) | |
| tree | 99e0bc5f673a8f84ea24a0cb00c9249aa8c5864b /js/webtrees.js | |
| parent | 5e22149f52c38322facbe24374555d58c80ffc0f (diff) | |
| download | webtrees-4556abfc256c4251794b8832a2d9f6cba58d4690.tar.gz webtrees-4556abfc256c4251794b8832a2d9f6cba58d4690.tar.bz2 webtrees-4556abfc256c4251794b8832a2d9f6cba58d4690.zip | |
Better long term solution to zoom for compact charts and left over display of <hr> and name tag
Diffstat (limited to 'js/webtrees.js')
| -rw-r--r-- | js/webtrees.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/js/webtrees.js b/js/webtrees.js index 4c33005daf..37d4ac0960 100644 --- a/js/webtrees.js +++ b/js/webtrees.js @@ -564,10 +564,13 @@ var oldiconsdislpay = 0; function expandbox(boxid, bstyle) { if (big==1) { + fontdef.style.display='none'; restorebox(oldboxid, bstyle); + //window.location.reload( false ); if (boxid==oldboxid) return true; } url = window.location.toString(); + cfontdef = document.getElementById("fontdef-"+boxid); divbox = document.getElementById("out-"+boxid); inbox = document.getElementById("inout-"+boxid); inbox2 = document.getElementById("inout2-"+boxid); @@ -644,6 +647,8 @@ function expandbox(boxid, bstyle) { inbox.style.display='none'; } + + if (inbox2) inbox2.style.display='none'; fontdef = document.getElementById("fontdef-"+boxid); @@ -775,11 +780,6 @@ function evalAjaxJavascript(text, parentElement) { } function restorebox(boxid, bstyle) { - if (big==1) { - window.location.reload( false ); - if (boxid==oldboxid) return true; - } - divbox = document.getElementById("out-"+boxid); inbox = document.getElementById("inout-"+boxid); inbox2 = document.getElementById("inout2-"+boxid); |
