Merge lp:~salgado/launchpad/bug-415365 into lp:launchpad
| Status: | Merged |
|---|---|
| Approved by: | Richard Harding on 2012-03-01 |
| Approved revision: | no longer in the source branch. |
| Merged at revision: | 14892 |
| Proposed branch: | lp:~salgado/launchpad/bug-415365 |
| Merge into: | lp:launchpad |
| Diff against target: |
81 lines (+34/-6) 3 files modified
lib/lp/app/javascript/inlineedit/editor.js (+6/-2) lib/lp/app/javascript/inlineedit/tests/test_inline_edit.html (+6/-0) lib/lp/app/javascript/inlineedit/tests/test_inline_edit.js (+22/-4) |
| To merge this branch: | bzr merge lp:~salgado/launchpad/bug-415365 |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Deryck Hodge (community) | Approve on 2012-03-01 | ||
| Richard Harding (community) | code* | 2012-03-01 | Approve on 2012-03-01 |
|
Review via email:
|
|||
Commit Message
[r=deryck,
Description of the Change
This uses an overlay to show errors on multi-line text editing (i.e. Y.EditableText) as the error is currently inserted in a node which is behind the text area so never seen by the user. I'm sure there's lots of room for improvement still, but this is certainly better than not showing the error to users at all, so I'd appreciate if that was taken into consideration.
| j.c.sackett (jcsackett) wrote : | # |
| Richard Harding (rharding) wrote : | # |
You need to make sure to add lp.app.errors to the requirements of the module. This means that the tests html page will have to have it added as a dependency as well.
Then since the errors is going to require the overlay code, you'll need to add
lazr.formoverlay
lazr.overlay
to the test.html dependencies as well.
| Guilherme Salgado (salgado) wrote : | # |
Thanks for the quick feedback, Rick! I've done the changes you suggested and added a new test to show that display_error() is called on multi-line widgets.

Including this screenshot https:/ /launchpadlibra rian.net/ 94901859/ overlay- error.png