Merge lp:~deryck/launchpad/icon-positioning-js-400057 into lp:launchpad
Proposed by
Deryck Hodge
Status: | Merged |
---|---|
Merged at revision: | not available |
Proposed branch: | lp:~deryck/launchpad/icon-positioning-js-400057 |
Merge into: | lp:launchpad |
Diff against target: | None lines |
To merge this branch: | bzr merge lp:~deryck/launchpad/icon-positioning-js-400057 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Guilherme Salgado (community) | Approve | ||
Review via email: mp+9256@code.launchpad.net |
To post a comment you must log in.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
= Summary =
After the addition of r8886 in devel, the add/remove icons are set via
sprite classes and positioned differently than when the JavaScript for
handling inline subscribing was originally written. So when subscribing
inline the icons are positioned incorrectly currently. This problem is
captured in bug 400057.
== Proposed fix ==
The correct fix is to get have the js that generates HTML use sprite
classes instead of inserting images.
== Pre-implementation notes ==
I didn't have any specific pre-imp discussions but plenty of discussion
happened on bug 383555 and bug 401658.
== Implementation details ==
This fix is pretty simple, just matching the current UI classes in js.
There are some outstanding questions about alignment from mpt in bug 401658.
== Tests ==
A Windmill test has been updated, and can be run with:
./bin/lp-windmill -e lp/bugs/ windmill/ tests/test_ bugs/test_ bug_inline_ subscriber. py bugs.launchpad. dev:8085
test=lib/
firefox http://
== Demo and Q/A ==
Subscribe and unsubscribe yourself a couple times and note that the
remove icon should appear to the right of the "Unsubscribe" link and
should be flush with the link. The add icon should always be to the
left of the link.
= Launchpad lint =
Checking for conflicts. and issues in doctests and templates.
Running jslint, xmllint, pyflakes, and pylint.
Using normal rules.
Linting changed files: /launchpad/ javascript/ bugs/subscriber .js /launchpad/ javascript/ bugs/bugtask- index.js bugs/windmill/ tests/test_ bugs/test_ bug_inline_ subscriber. py
lib/canonical
lib/canonical
lib/lp/
== JSLint notices == deryck/ canonical/ lp-branches/ icon-positionin g-js-400057/ lib/canonical/ launchpad/ javascript/ bugs/bugtask- index.js' :
status_ content. on('click' , function(e) { e.halt() });
jslint: Lint found in
'/home/
Line 1263 character 58: Missing semicolon.
Line 1264 character 62: Missing semicolon.
importance_ content. on('click' , function(e) { e.halt() });
jslint: No problem found in deryck/ canonical/ lp-branches/ icon-positionin g-js-400057/ lib/canonical/ launchpad/ javascript/ bugs/subscriber .js'.
'/home/
jslint: 2 files to lint.
(Note: These lint notices are fixed in another, not yet landed, branch.) enigmail. mozdev. org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://
iEYEARECAAYFAkp p+FkACgkQ4glRK0 DaE8j69ACgt9PkU AVbefqAgoZMthVA wuTg fg1L76ulTBQF0gG A+
B9IAoK2TEaVe6IA
=MhGd
-----END PGP SIGNATURE-----