Clicking "Add comment to this bug" reloads the page then jumps to the top
Bug #6434 reported by
Matthew Paul Thomas
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Fix Released
|
Medium
|
James Henstridge |
Bug Description
From https:/
I should never see any page with +index in the URL.
Changed in malone: | |
assignee: | nobody → jamesh |
status: | New → Accepted |
Changed in malone: | |
status: | Confirmed → Fix Committed |
Changed in malone: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
This affects Safari (so possibly also konquerer).
The new javascript generates an <a href="#"> element and attaches a click event handler. The end of the handler cancels the event (to prevent the link being followed) with this code:
// cancel the default action of the event ault) {
evt.preventDef ault();
evt.returnValu e = false;
if (evt.preventDef
} else {
}
The first branch works with browsers supporting DOM 2 events. The second is fallback for internet explorer.