Ticket #4333 (closed bug: invalid)
Jquery Selector and window onload
| Reported by: | onthefloor | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | 1.3.2 |
| Component: | unfiled | Version: | 1.3.2 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
Hi there:
So i updated to 1.3.2 version today, and i found a bug : So when i add function at parameter, this parameter is an function pointer, so when the page was loading i call this function : example:
function addLoadEvent(function_) {
var old= window.onload; document.getElementById("preLoadDiv").style.display = "block"; if (typeof window.onload != 'function') {
window.onload = function_;
} else {
window.onload = function() {
if (old) {
old();
} function_();
}
}
}
And when i was calling : addLoadEvent(function() {
$("#preLoadDiv").hide("slow"); });
It was work perfectly in 1.3.1 version, please fix it, thank you. My pages use that function.
Attachments
Change History
comment:2 Changed 4 years ago by dmethvin
Can you put together a complete example with html and script? The snippet you have there isn't clearly showing a problem.
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.


I forgot the essence. The #preLoadDiv layout was changing the display option to block, but when the page was loaded, the layout wasnt changing to hide.