Merge lp:~jtv/launchpad/bug-487428 into lp:launchpad/db-devel

Proposed by Jeroen T. Vermeulen
Status: Merged
Approved by: Graham Binns
Approved revision: not available
Merged at revision: not available
Proposed branch: lp:~jtv/launchpad/bug-487428
Merge into: lp:launchpad/db-devel
Diff against target: 23 lines (+4/-3)
1 file modified
lib/lp/translations/templates/object-templates.pt (+4/-3)
To merge this branch: bzr merge lp:~jtv/launchpad/bug-487428
Reviewer Review Type Date Requested Status
Jeroen T. Vermeulen (community) code Approve
Graham Binns (community) js Approve
Review via email: mp+15183@code.launchpad.net

Commit message

Fix template listings for YUI3.

To post a comment you must log in.
Revision history for this message
Jeroen T. Vermeulen (jtv) wrote :

= Bug 487428 =

This is a fixup for the YUI3 upgrade. The management links for a template in a template listing should be greyed out unless the mouse is over them, but the upgrade branch broke this.

The reason is pretty silly: a CSS selector was mis-spelled in a piece of JavaScript. It was done consistently, making it hard to spot the mistake.

No tests are affected; it'd be a lot of work for very little gain to test a visual effect like this, and a test for this would probably have been self-fulfilling by making the same typo. Lastly, the failure mode is benign—the management links were simply always being shown.

To see this in action on a dev system, see:

    https://translations.launchpad.dev/evolution/trunk/+templates

The Edit/Upload/Download/Administer links on the right-hand side of the table should be shown as links only when the mouse pointer hovers over them.

No lint.

Jeroen

Revision history for this message
Graham Binns (gmb) :
review: Approve (js)
Revision history for this message
Jeroen T. Vermeulen (jtv) wrote :

Since this fix touches only JavaScript, I'm sure the js review also counts as a code review. Let's see whether "ec2 land" buys that argument.

review: Approve (code)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'lib/lp/translations/templates/object-templates.pt'
2--- lib/lp/translations/templates/object-templates.pt 2009-11-11 22:42:33 +0000
3+++ lib/lp/translations/templates/object-templates.pt 2009-11-24 06:35:26 +0000
4@@ -37,15 +37,16 @@
5 <script language="JavaScript" type="text/javascript">
6 YUI().use('node-base', 'event-delegate', function(Y) {
7 Y.on('domready', function(e) {
8- Y.all('#template_table .template_links').addClass('inactive_links');
9+ Y.all('#templates_table .template_links').addClass(
10+ 'inactive_links');
11
12 Y.delegate('mouseover', function(e) {
13 this.removeClass('inactive_links');
14- }, '#template_table tbody', '.template_links');
15+ }, '#templates_table tbody', '.template_links');
16
17 Y.delegate('mouseout', function(e) {
18 this.addClass('inactive_links');
19- }, '#template_table tbody', '.template_links');
20+ }, '#templates_table tbody', '.template_links');
21 });
22 });
23 </script>

Subscribers

People subscribed via source and target branches

to status/vote changes: