'Browse' option not firing file upload on multilingual sites

Created on 2 August 2016, over 8 years ago
Updated 4 June 2023, almost 2 years ago

I'm using this module on a multilingual site, and this line of code in file_chooser_field.js caused me some issues as the submit button value had been translated from 'Upload' to 'subir' (Spanish).

$('input.form-submit[value=Upload]', $parent).mousedown();

Naturally this meant the actual submit function never fires for local files.

Incoming patch to run this through Drupal.t() to support those using this with multiple languages.

🐛 Bug report
Status

Fixed

Version

1.12

Component

Code

Created by

🇬🇧United Kingdom aaron.ferris

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024