Projet

Général

Profil

0001-js-update-prefill-value-for-tel-numeric-fields-57087.patch

Frédéric Péters, 20 septembre 2021 08:40

Télécharger (1,08 ko)

Voir les différences:

Subject: [PATCH] js: update prefill value for tel & numeric fields (#57087)

 wcs/qommon/static/js/qommon.forms.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
wcs/qommon/static/js/qommon.forms.js
472 472
              } else {
473 473
                // replace text input value
474 474
                if ($(widget).is('.widget-prefilled') || $(widget).is('.widget-readonly') || data.modified_field == 'user') {
475
                  $(widget).find('input[type=text], input[type=email], textarea').val(value.content);
475
                  $(widget).find('input[type=text], input[type=tel], input[type=numeric], input[type=email], textarea').val(value.content);
476 476
                }
477 477
              }
478 478
            });
479
-