Merge lp:~bjornt/launchpad/choiceedit-click-handler into lp:launchpad/db-devel

Proposed by Björn Tillenius
Status: Merged
Merged at revision: not available
Proposed branch: lp:~bjornt/launchpad/choiceedit-click-handler
Merge into: lp:launchpad/db-devel
Diff against target: 14 lines (+2/-2)
1 file modified
lib/canonical/launchpad/javascript/bugs/bugtask-index.js (+2/-2)
To merge this branch: bzr merge lp:~bjornt/launchpad/choiceedit-click-handler
Reviewer Review Type Date Requested Status
Guilherme Salgado (community) release-critical Approve
Graham Binns (community) js Approve
Review via email: mp+15484@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Björn Tillenius (bjornt) wrote :

Fix "Target to milestone" on the bug page to work inline again.

A change in lazr-js fixed some issues with the ChoiceEdit, making it
work in Opera. However, when LP was changed to use this newer lazr-js
version, the code that set up the "Target to milestone" link wasn't
updated, causing the code to break, since it tried calling and old
method that doesn't exist anymore.

I would normally write a Windmill test for this (which would have
caught this error earlier), but Tom is already writing tests for the
bug task table (bug 488142).

--
Björn Tillenius | https://launchpad.net/~bjornt

Revision history for this message
Graham Binns (gmb) :
review: Approve (js)
Revision history for this message
Guilherme Salgado (salgado) wrote :

Looks good, but please double check that there are no other callsites that use _onMouseDown.

review: Approve (release-critical)
Revision history for this message
Björn Tillenius (bjornt) wrote :

On Tue, Dec 01, 2009 at 12:43:48PM -0000, Guilherme Salgado wrote:
> Review: Approve release-critical
> Looks good, but please double check that there are no other callsites
> that use _onMouseDown.

grep doesn't find "onMouseDown" in either lib/lp or lib/canonical.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'lib/canonical/launchpad/javascript/bugs/bugtask-index.js'
2--- lib/canonical/launchpad/javascript/bugs/bugtask-index.js 2009-11-24 09:30:01 +0000
3+++ lib/canonical/launchpad/javascript/bugs/bugtask-index.js 2009-12-01 12:20:31 +0000
4@@ -1465,8 +1465,8 @@
5 milestone_choice_edit._uiClearWaiting();
6 });
7 milestone_content.one('.nulltext').on(
8- 'mousedown',
9- milestone_choice_edit._onMouseDown,
10+ 'click',
11+ milestone_choice_edit.onClick,
12 milestone_choice_edit);
13 milestone_choice_edit.render();
14 }

Subscribers

People subscribed via source and target branches

to status/vote changes: