Merge lp:~rharding/launchpad/reportbug into lp:launchpad
| Status: | Merged |
|---|---|
| Approved by: | Richard Harding on 2012-07-18 |
| Approved revision: | no longer in the source branch. |
| Merged at revision: | 15657 |
| Proposed branch: | lp:~rharding/launchpad/reportbug |
| Merge into: | lp:launchpad |
| Diff against target: |
152 lines (+21/-29) 6 files modified
lib/lp/app/javascript/listing_navigator.js (+4/-18) lib/lp/app/javascript/tests/test_listing_navigator.js (+1/-1) lib/lp/bugs/javascript/buglisting.js (+6/-3) lib/lp/bugs/javascript/tests/test_buglisting.js (+2/-2) lib/lp/registry/javascript/sharing/shareetable.js (+8/-4) lib/lp/registry/javascript/sharing/tests/test_shareetable.js (+0/-1) |
| To merge this branch: | bzr merge lp:~rharding/launchpad/reportbug |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Raphaël Badin (community) | 2012-07-18 | Approve on 2012-07-18 | |
| Francesco Banconi (community) | code* | 2012-07-18 | Approve on 2012-07-18 |
|
Review via email:
|
|||
Commit Message
Update the buglisting updated navigation to scope css selctors.
Description of the Change
= Summary =
I missed a point where the linked navigation gets updated by later events and
would render the report a bug link inert again.
So this is a follow up from:
https:/
== Implementation Notes ==
I noticed that we should be using the container of the ListingNavigator object
instance and moved the methods to using that to constrain the targeting.
Since linkify_navigation isn't on the instance, but a module method, we have
to pass in the instance info we need in the form of the container node.
== Tests ==
lib/lp/
lib/lp/
lib/lp/
| Raphaël Badin (rvb) wrote : | # |
Looks good.
[0]
101 - '<a class="previous" href="http://
102 - '<div id="client-
103 + '<a class="previous" href="http://
104 + '<div id="client-
I've spotted the fix (s/span/a/) but the indentation seems off.
[1]
119 - Y.lp.app.
120 + Y.lp.app.
You explained to me on IRC why this doesn't require a test code change so FTR:
│18:39:46 rick_h_ | rvba: no, the sharee test code didn't test the navigation html at all relying on the underlying code to test/do it
│18:40:26 rick_h_ | rvba: thought about adding a test, but wasn't sure if it was worth the LoC to test what's tested already.
| Richard Harding (rharding) wrote : | # |
> Looks good.
>
> [0]
>
> 101 - '<a class="previous"
> href="http://
> 102 - '<div id="client-
> 103 + '<a class="previous"
> href="http://
> 104 + '<div id="client-
>
> I've spotted the fix (s/span/a/) but the indentation seems off.
The indentation was done just to indicate that there's a nested html structure there. The bug here is not limiting to the parent node scope and just tried to bring out that there's a parent there.

Looks good, thanks Richard.