Merge lp:~wallyworld/launchpad/nominations-javascript2-271697 into lp:launchpad
Proposed by
Ian Booth
Status: | Merged |
---|---|
Approved by: | Curtis Hovey |
Approved revision: | no longer in the source branch. |
Merged at revision: | 16093 |
Proposed branch: | lp:~wallyworld/launchpad/nominations-javascript2-271697 |
Merge into: | lp:launchpad |
Diff against target: |
122 lines (+18/-54) 2 files modified
lib/lp/bugs/stories/bugs/xx-bug-nomination-table-row.txt (+4/-23) lib/lp/bugs/templates/bugnomination-tasks-and-nominations-table-row.pt (+14/-31) |
To merge this branch: | bzr merge lp:~wallyworld/launchpad/nominations-javascript2-271697 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Curtis Hovey (community) | code | Approve | |
Review via email: mp+127918@code.launchpad.net |
Commit message
Fix nominations expanders and layout issues.
Description of the change
The link to open the nominations form for each bugtask row was wired to old, deleted javascript. The new expander infrastructure has been wired in. The new expander uses a little triangle icon so the now obsolete brackets around the link have been wrapped in a hide-on-load span so they only show when javascript is not available.
Also fix a table cell colspan issue.
To post a comment you must log in.
This markup is incompatible with the expander. The expander *creates* an <a> node and wraps the label node to create the expanding link. The label node is the first node in the "collapsible" parent, and it is already an anchor. Anchors in anchors are invalid and fail in some browsers. You need to change the first node to a span., of but that markup also looks odd because we have a link in the span...
We are being stupid. This markup has been edited so many times over seven years we forgot what is happening.
1. We do not need a link to the form page, the bloody form is rendered inline.
2. The form should not be hidden, the expander adds the hidden css class when js is successful, and we care about hide-on-load
3. We already have a driver permission check in the outer nodes, we don't need checks in the subnodes.
4. the "lesser" css class that makes the small text in a for we expect to use is madness. the small text is for asides you do not need to do important work with. We can remove that.
5. I think we want to tweak the style, or find a class that does the proper alignment and spacing. The current alignment was probably designed for Lp 1.0.
6. Oh the secondary class is not used with tables anymore
This is a replacement template that removes the cruft. http:// pastebin. ubuntu. com/1260024/
I would be nice if the form knew it was embedded, but that is really a seperate issue involving formoverlay.