diff options
author | Andy Staudacher <andy.st@gmail.com> | 2010-02-27 19:47:08 -0800 |
---|---|---|
committer | Andy Staudacher <andy.st@gmail.com> | 2010-02-27 19:47:08 -0800 |
commit | caf9ae88badfa5c2b8eb3eac03e298f1beea79a3 (patch) | |
tree | 5a86dde44ae13cb665f0ebf39746b0e2a2d58b11 /modules/gallery/js/l10n_client.js | |
parent | 8366f58ef9621679600ae0862cf72418d3e6f6fd (diff) |
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].
Diffstat (limited to 'modules/gallery/js/l10n_client.js')
-rw-r--r-- | modules/gallery/js/l10n_client.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gallery/js/l10n_client.js b/modules/gallery/js/l10n_client.js index c9009d97..a77667f3 100644 --- a/modules/gallery/js/l10n_client.js +++ b/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'); } |