Merge lp:~wallyworld/launchpad/bug-javascript-1011611 into lp:launchpad
| Status: | Merged | ||||
|---|---|---|---|---|---|
| Approved by: | Ian Booth on 2012-06-13 | ||||
| Approved revision: | no longer in the source branch. | ||||
| Merged at revision: | 15405 | ||||
| Proposed branch: | lp:~wallyworld/launchpad/bug-javascript-1011611 | ||||
| Merge into: | lp:launchpad | ||||
| Diff against target: |
218 lines (+51/-29) 5 files modified
lib/lp/app/javascript/choice.js (+1/-1) lib/lp/app/javascript/choiceedit/choiceedit.js (+7/-1) lib/lp/bugs/javascript/information_type_choice.js (+33/-21) lib/lp/bugs/javascript/tests/test_information_type_choice.js (+9/-4) lib/lp/bugs/templates/bug-portlet-privacy.pt (+1/-2) |
||||
| To merge this branch: | bzr merge lp:~wallyworld/launchpad/bug-javascript-1011611 | ||||
| Related bugs: |
|
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Steve Kowalik (community) | code | 2012-06-13 | Approve on 2012-06-13 |
|
Review via email:
|
|||
Commit Message
Ensure edit icons appear on file bug choice popups on Chrome, fix rendering issues on bug privacy portlet.
Description of the Change
== Implementation ==
Fix markup generated for the filebug edit icons to remove a ' ' between the span and anchor.
Ensure the bug privacy portlet lock icon is updated when the popup value is saved, like is done for description.
Fix error rendering - disable standard choice popup animation and render the success and error animations manually. These callbacks are hard wired into the widget so a few tweaks to the widget were required. Previously, nothing in the lp codebase asked the choice popup to render the error condition.
== Tests ==
Update yui tests for information type javascript.
== Lint ==
Checking for conflicts and issues in changed files.
Linting changed files:
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
| Ian Booth (wallyworld) wrote : | # |
The show failed comes before the update because we want to flash the displayed 'bad' text.
The show success comes after the update because we want to flash the good text.

This looks excellent. My only concern is on lines 48-49 you call ._showFailed() on the widget and then update the privacy portlet, whereas on lines 108-109, you update the privacy portlet and then call .showSuccessful().