Merge lp:~rharding/launchpad/replace_foldables into lp:launchpad
| Status: | Merged |
|---|---|
| Approved by: | Ian Booth on 2012-01-10 |
| Approved revision: | no longer in the source branch. |
| Merged at revision: | 14661 |
| Proposed branch: | lp:~rharding/launchpad/replace_foldables |
| Merge into: | lp:launchpad |
| Diff against target: |
338 lines (+242/-56) 5 files modified
lib/lp/app/javascript/foldables.js (+79/-0) lib/lp/app/javascript/lp-mochi.js (+0/-53) lib/lp/app/javascript/tests/test_foldables.html (+28/-0) lib/lp/app/javascript/tests/test_foldables.js (+131/-0) lib/lp/app/templates/base-layout-macros.pt (+4/-3) |
| To merge this branch: | bzr merge lp:~rharding/launchpad/replace_foldables |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Ian Booth (community) | code | 2012-01-09 | Approve on 2012-01-10 |
|
Review via email:
|
|||
Commit Message
[r=wallyworld]
Description of the Change
= Summary =
We're removing mochikit library which this foldable ui interaction relies on. In discussions with Curtis and others, it was determined that this was an effort to help with spam management. Since that issues isn't as prevalent these days, it won't be missed if the feature was just removed.
== Proposed Fix ==
Remove the function.
== Implementation Details ==
Removed
== Tests ==
google-chrome lib/lp/
== Demo and Q/A ==
Load a bug with a quoted comment and verify that you can close/
== Lint ==
Checking for conflicts and issues in changed files.
Linting changed files:
lib/lp/
lib/lp/
lib/lp/
| Ian Booth (wallyworld) wrote : | # |
Excellent. Thanks for adding the suggested improvements.

Looks good. I have some questions/ suggstions:
1. init method name: Y.lp.app. foldable. init();
Should we make it Y.lp.app. foldable. activate_ foldables( ); collapsables( ) naming? The suggested name is also more indicative of what we are doing ie lookign for all foldable elements and activating each one. init() implies more that a module is being initialised rather than many page elements.
to be consistent with activate_
2. The old code:
if (quoted_lines && quoted_lines.length <= 11) {
was replaced with
if (quoted_lines && quoted_lines.size() <= 12) {
Which is correct?
I'd like to see a test around the corner case of 12 lines
ie test that exactly 12 lines is not folded but 13 lines is