forms: remove × from value in select2 optional fields (#18752)
This commit is contained in:
parent
51c44f7996
commit
9b76c9c628
|
@ -1860,6 +1860,9 @@ $('#%(variable)s').change();
|
|||
|
||||
$("#form_%(id)s").change(function() {
|
||||
var text = $("#form_%(id)s").next().find('.select2-selection__rendered').text();
|
||||
if ($("#form_%(id)s").next().find('.select2-selection__rendered .select2-selection__clear').length) {
|
||||
text = text.slice(1);
|
||||
}
|
||||
$('#form_%(id)s_display').val(text);
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue