aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/styles/prosilver/template/overall_header.html
diff options
context:
space:
mode:
authorVjacheslav Trushkin <cyberalien@gmail.com>2013-08-16 18:34:05 +0300
committerVjacheslav Trushkin <cyberalien@gmail.com>2013-09-14 10:10:42 +0300
commit253890520d75190aa268c9ea6ce1dd757fb571ff (patch)
tree1a6e1f84afc5b54f49db1c7ffa8aa0f1b971d0ce /phpBB/styles/prosilver/template/overall_header.html
parenta92a3cfeb97e1d5e506252c09ae545d9382b6bda (diff)
downloadforums-253890520d75190aa268c9ea6ce1dd757fb571ff.tar
forums-253890520d75190aa268c9ea6ce1dd757fb571ff.tar.gz
forums-253890520d75190aa268c9ea6ce1dd757fb571ff.tar.bz2
forums-253890520d75190aa268c9ea6ce1dd757fb571ff.tar.xz
forums-253890520d75190aa268c9ea6ce1dd757fb571ff.zip
[ticket/11795] Get rid of onload_functions
Get rid of onload_functions and onunload_functions Scripts should use $(document).ready() instead PHPBB-11795
Diffstat (limited to 'phpBB/styles/prosilver/template/overall_header.html')
-rw-r--r--phpBB/styles/prosilver/template/overall_header.html21
1 files changed, 0 insertions, 21 deletions
diff --git a/phpBB/styles/prosilver/template/overall_header.html b/phpBB/styles/prosilver/template/overall_header.html
index c1cdc0c223..0c15ec80c7 100644
--- a/phpBB/styles/prosilver/template/overall_header.html
+++ b/phpBB/styles/prosilver/template/overall_header.html
@@ -30,33 +30,12 @@
var on_page = '{ON_PAGE}';
var per_page = '{PER_PAGE}';
var base_url = '{A_BASE_URL}';
- var onload_functions = new Array();
- var onunload_functions = new Array();
<!-- IF S_USER_PM_POPUP and S_NEW_PM -->
var url = '{UA_POPUP_PM}';
window.open(url.replace(/&amp;/g, '&'), '_phpbbprivmsg', 'height=225,resizable=yes,scrollbars=yes, width=400');
<!-- ENDIF -->
- /**
- * New function for handling multiple calls to window.onload and window.unload by pentapenguin
- */
- window.onload = function()
- {
- for (var i = 0; i < onload_functions.length; i++)
- {
- onload_functions[i]();
- }
- };
-
- window.onunload = function()
- {
- for (var i = 0; i < onunload_functions.length; i++)
- {
- onunload_functions[i]();
- }
- };
-
// ]]>
</script>