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)
Bugzilla
Attachments & Requests
Tracking
()
RESOLVED
FIXED
Bugzilla 3.4
People
(Reporter: alexanderkraus, Assigned: guy.pyrzak)
References
Details
Attachments
(1 file)
|
579 bytes,
patch
|
mkanat
:
review+
|
Details | Diff | Splinter Review |
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
Updated•18 years ago
|
Assignee: general → attach-and-request
Severity: normal → minor
Component: Bugzilla-General → Attachments & Requests
OS: Windows XP → All
Hardware: PC → All
| Assignee | ||
Comment 1•18 years ago
|
||
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
| Assignee | ||
Comment 2•18 years ago
|
||
here is the fix to the bug.
Assignee: attach-and-request → guy.pyrzak
Status: NEW → ASSIGNED
Attachment #313364 -
Flags: review?(mkanat)
Comment 3•18 years ago
|
||
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+
Updated•18 years ago
|
Flags: approval+
Target Milestone: --- → Bugzilla 3.2
Comment 4•18 years ago
|
||
Since this doesn't fix anything, I think it should only go into 4.0, actually.
Target Milestone: Bugzilla 3.2 → Bugzilla 4.0
| Assignee | ||
Comment 5•18 years ago
|
||
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.
| Assignee | ||
Comment 6•18 years ago
|
||
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
Updated•17 years ago
|
Target Milestone: Bugzilla 4.0 → Bugzilla 3.4
You need to log in
before you can comment on or make changes to this bug.
Description
•