1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 22:10:45 +02:00

[ticket/12372] Move dE() function core.js

PHPBB3-12372
This commit is contained in:
Marc Alexander
2014-04-07 21:27:48 +02:00
parent ad98a070c3
commit 966a2b4892
7 changed files with 23 additions and 112 deletions

View File

@@ -7,34 +7,6 @@
<title>{PAGE_TITLE}</title>
<link href="{T_TEMPLATE_PATH}/admin.css" rel="stylesheet" type="text/css" media="screen" />
<script type="text/javascript">
// <![CDATA[
/**
* Set display of page element
*
* @param string id The ID of the element to change
* @param int action Set to 0 if element display should be toggled, -1 for
* hiding the element, and 1 for showing it.
* @param string type Display type that should be used, e.g. inline, block or
* other CSS "display" types
*/
function dE(id, action, type) {
if (!type) {
type = 'block';
}
var display = jQuery('#' + id).css('display');
if (!action) {
action = (display === '' || display === type) ? -1 : 1;
}
jQuery('#' + id).css('display', ((action === 1) ? type : 'none'));
}
// ]]>
</script>
</head>
<body class="{S_CONTENT_DIRECTION} nojs">