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].
This commit is contained in:
Andy Staudacher
2010-02-27 19:47:08 -08:00
parent 8366f58ef9
commit caf9ae88ba

View File

@@ -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');
}