Closed Bug 426165 Opened 18 years ago Closed 18 years ago

javascript in template flag/list.html.tmpl overwrites default onload-Event

Categories

(Bugzilla :: Attachments & Requests, defect)

defect
Not set
trivial

Tracking

()

RESOLVED FIXED
Bugzilla 3.4

People

(Reporter: alexanderkraus, Assigned: guy.pyrzak)

References

Details

Attachments

(1 file)

User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727) Build Identifier: bugzilla-3.1.3 in line 71 of the file flag/list.html.tmpl the default javascript onload event gets overwritten: > window.onload = disableRequesteeFields; in cause of that, all other javascript function calls what may be attached to onload are removed. here it would be better to write window.attachEvent("onload",disableRequesteeFields); to avoid problems with other functions Reproducible: Always
Assignee: general → attach-and-request
Severity: normal → minor
Component: Bugzilla-General → Attachments & Requests
OS: Windows XP → All
Hardware: PC → All
This is true (I noticed it a while ago), however, right now this isn't effecting anything and the fix is trivial. I would suggest the following: YAHOO.util.Event.addListener(window, "load", disableRequesteeFields); I'll attach a patch. But like i said, it doesn't really effect anything.
Severity: minor → trivial
Status: UNCONFIRMED → NEW
Ever confirmed: true
Attached patch Flag Patch V1Splinter Review
here is the fix to the bug.
Assignee: attach-and-request → guy.pyrzak
Status: NEW → ASSIGNED
Attachment #313364 - Flags: review?(mkanat)
Comment on attachment 313364 [details] [diff] [review] Flag Patch V1 This is fine, if you're absolutely certain that the yahoo JS is loaded everywhere that this template is called.
Attachment #313364 - Flags: review?(mkanat) → review+
Flags: approval+
Target Milestone: --- → Bugzilla 3.2
Since this doesn't fix anything, I think it should only go into 4.0, actually.
Target Milestone: Bugzilla 3.2 → Bugzilla 4.0
Yup, I agree. Notice i didn't put a blocker for 3.2. Hopefully by then we'll fix the yahoo js being where it needs to be.
Checking in template/en/default/flag/list.html.tmpl; /cvsroot/mozilla/webtools/bugzilla/template/en/default/flag/list.html.tmpl,v <-- list.html.tmpl new revision: 1.33; previous revision: 1.32 done
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Target Milestone: Bugzilla 4.0 → Bugzilla 3.4
Blocks: 455808
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: