diff --git a/phpBB/adm/style/install_header.html b/phpBB/adm/style/install_header.html index 4980fd36fb..a8f7009e4b 100644 --- a/phpBB/adm/style/install_header.html +++ b/phpBB/adm/style/install_header.html @@ -7,34 +7,6 @@ {PAGE_TITLE} - - - diff --git a/phpBB/adm/style/overall_header.html b/phpBB/adm/style/overall_header.html index 668c0f4e92..774df48917 100644 --- a/phpBB/adm/style/overall_header.html +++ b/phpBB/adm/style/overall_header.html @@ -35,27 +35,6 @@ function jumpto() } } -/** -* 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')); -} - /** * Mark/unmark checkboxes * id = ID of parent container, name = name prefix, state = state [true/false] diff --git a/phpBB/adm/style/simple_footer.html b/phpBB/adm/style/simple_footer.html index a559b25b72..c549a2df4e 100644 --- a/phpBB/adm/style/simple_footer.html +++ b/phpBB/adm/style/simple_footer.html @@ -18,6 +18,8 @@ + + diff --git a/phpBB/adm/style/simple_header.html b/phpBB/adm/style/simple_header.html index 01757f1032..8950c4c394 100644 --- a/phpBB/adm/style/simple_header.html +++ b/phpBB/adm/style/simple_header.html @@ -48,27 +48,6 @@ function jumpto() } } -/** -* 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')); -} - /** * Mark/unmark checkboxes * id = ID of parent container, name = name prefix, state = state [true/false] diff --git a/phpBB/assets/javascript/core.js b/phpBB/assets/javascript/core.js index aa9dc9af82..ccb031de24 100644 --- a/phpBB/assets/javascript/core.js +++ b/phpBB/assets/javascript/core.js @@ -1061,6 +1061,27 @@ phpbb.registerPalette = function(el) { }); } +/** +* 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')); +} + /** * Apply code editor to all textarea elements with data-bbcode attribute */ diff --git a/phpBB/styles/prosilver/template/forum_fn.js b/phpBB/styles/prosilver/template/forum_fn.js index 7d114d9593..96f665492d 100644 --- a/phpBB/styles/prosilver/template/forum_fn.js +++ b/phpBB/styles/prosilver/template/forum_fn.js @@ -91,27 +91,6 @@ function viewableArea(e, itself) { } } -/** -* 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')); -} - /** * Alternate display of subPanels */ diff --git a/phpBB/styles/subsilver2/template/ucp_prefs_personal.html b/phpBB/styles/subsilver2/template/ucp_prefs_personal.html index 3499f5ef9a..47e43cafba 100644 --- a/phpBB/styles/subsilver2/template/ucp_prefs_personal.html +++ b/phpBB/styles/subsilver2/template/ucp_prefs_personal.html @@ -2,27 +2,6 @@