forms: remove × from value in select2 optional fields (#18752)

This commit is contained in:
Frédéric Péters 2017-09-18 11:20:09 +02:00
parent 51c44f7996
commit 9b76c9c628
1 changed files with 3 additions and 0 deletions

View File

@ -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);
});