aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/styles/prosilver/template/forum_fn.js
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@phpbb.com>2010-07-31 02:10:00 +0200
committerAndreas Fischer <bantu@phpbb.com>2010-07-31 02:10:00 +0200
commitf179987f6468c6ded301bbb95871d1591b00b98f (patch)
tree98cffa84fb26000a54a8c69b5be1adf899504032 /phpBB/styles/prosilver/template/forum_fn.js
parentccb4182d2906b00a3fdce2790656aace5bdc2c9d (diff)
parent488030543607b23940cd97ecc44fba047174173d (diff)
downloadforums-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.js13
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';
}
/**