mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-07-14 11:00:11 -04:00
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:
@@ -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');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user