mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-20 23:41:29 +02:00
[ticket/11795] Get rid of onload_functions
Get rid of onload_functions and onunload_functions Scripts should use $(document).ready() instead PHPBB-11795
This commit is contained in:
@@ -14,27 +14,6 @@
|
||||
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();
|
||||
|
||||
/**
|
||||
* 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>
|
||||
|
Reference in New Issue
Block a user