Merge lp:~thumper/lazr-js/multi-line-editor-goodness into lp:lazr-js
Status: | Merged | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Merged at revision: | 202 | ||||||||||||||||||||||||
Proposed branch: | lp:~thumper/lazr-js/multi-line-editor-goodness | ||||||||||||||||||||||||
Merge into: | lp:lazr-js | ||||||||||||||||||||||||
Diff against target: |
432 lines (+188/-52) 4 files modified
examples/inlineeditor/index.html (+29/-4) src-js/lazrjs/inlineedit/assets/skins/sam/editor-skin.css (+13/-5) src-js/lazrjs/inlineedit/editor.js (+44/-29) src-js/lazrjs/inlineedit/tests/inline_edit.js (+102/-14) |
||||||||||||||||||||||||
To merge this branch: | bzr merge lp:~thumper/lazr-js/multi-line-editor-goodness | ||||||||||||||||||||||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Deryck Hodge (community) | code | Approve | |
Review via email: mp+48118@code.launchpad.net |
Commit message
Make the multiline editor more awesomer.
Description of the change
This branch attacks a number of really annoying bugs with the
multiline editor. Most of them CSS styling bugs.
Bug 705548: Mousing over the edit button caused the rest of the page
to be pushed down 1px.
- this was solved by having the text-hover class have on less px bottom
padding
Bug 711054: extra trailing whitespace
- solved by removing trailing whitespace in the value getter method
Bug 711116: Cancel button bounces instead of eases on multiple enables
- solved by removing the style left on the cancel button before showing it
Bug 711124: Error font size is too small
- removed the 0.5em on the error css class
- I'm sure this was added as the initial implementation was to edit
H1 tags, and the errors looked huge.
Bug 711127: Multiline editor in error looks badly styled
- Added a negative margin to the in-error css class
- also tweaked the button label when in error to make it line up
Bug 711128: Getting an error in a multiline editor disables resubmission
- refactored the show and hide loading spinner in the editor.js file
- added a hide loading spinner to the start of the show error method
Also, to aid testing, the editor example code was tweaked to make every
other call to the delayed save plugin fail and set an error.
<deryck> thumper, so looks good to me. I would add a js test that the icons are re-enabled on error. And some text on the example page to explain that it will error every other attempt would be nice.
<deryck> thumper, r=me with those changes.
<thumper> deryck: ok