diff options
author | Andreas Fischer <bantu@phpbb.com> | 2010-07-31 02:10:00 +0200 |
---|---|---|
committer | Andreas Fischer <bantu@phpbb.com> | 2010-07-31 02:10:00 +0200 |
commit | f179987f6468c6ded301bbb95871d1591b00b98f (patch) | |
tree | 98cffa84fb26000a54a8c69b5be1adf899504032 /phpBB/styles/prosilver/template/forum_fn.js | |
parent | ccb4182d2906b00a3fdce2790656aace5bdc2c9d (diff) | |
parent | 488030543607b23940cd97ecc44fba047174173d (diff) | |
download | forums-f179987f6468c6ded301bbb95871d1591b00b98f.tar forums-f179987f6468c6ded301bbb95871d1591b00b98f.tar.gz forums-f179987f6468c6ded301bbb95871d1591b00b98f.tar.bz2 forums-f179987f6468c6ded301bbb95871d1591b00b98f.tar.xz forums-f179987f6468c6ded301bbb95871d1591b00b98f.zip |
Merge branch 'ticket/jellydoughnut/9499' into develop-olympus
* ticket/jellydoughnut/9499:
[ticket/9499] Unify definition of dE() and other javascript functions
Diffstat (limited to 'phpBB/styles/prosilver/template/forum_fn.js')
-rw-r--r-- | phpBB/styles/prosilver/template/forum_fn.js | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/phpBB/styles/prosilver/template/forum_fn.js b/phpBB/styles/prosilver/template/forum_fn.js index 6fb3778952..4a85858df5 100644 --- a/phpBB/styles/prosilver/template/forum_fn.js +++ b/phpBB/styles/prosilver/template/forum_fn.js @@ -98,16 +98,21 @@ function viewableArea(e, itself) /** * Set display of page element * s[-1,0,1] = hide,toggle display,show +* type = string: inline, block, inline-block or other CSS "display" type */ -function dE(n, s) +function dE(n, s, type) { - var e = document.getElementById(n); + if (!type) + { + type = 'block'; + } + var e = document.getElementById(n); if (!s) { - s = (e.style.display == '' || e.style.display == 'block') ? -1 : 1; + s = (e.style.display == '' || e.style.display == type) ? -1 : 1; } - e.style.display = (s == 1) ? 'block' : 'none'; + e.style.display = (s == 1) ? type : 'none'; } /** |