Permalink
Browse files

Fix l10n client, copy of existing plural translation to form fields.

I think this was broken in a recent jQuery update. It used to allow matching the HTML "name" attribute with #name_value, now you need to match by elementName[name=name_value].
  • Loading branch information...
1 parent 8366f58 commit caf9ae88badfa5c2b8eb3eac03e298f1beea79a3 @andyst andyst committed Feb 28, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 modules/gallery/js/l10n_client.js
@@ -124,7 +124,7 @@ jQuery.extend(Gallery, {
if (translation[form] == undefined) {
translation[form] = '';
}
- $('#l10n-edit-plural-translation-' + form)
+ $("#plural-" + form + " textarea[name='l10n-edit-plural-translation-" + form + "']")
.attr('value', translation[form]);
$('#plural-' + form).removeClass('hidden');
}

0 comments on commit caf9ae8

Please sign in to comment.