Make submit form work

This commit is contained in:
cuom1999 2020-07-19 16:39:28 -05:00
parent 3629369fba
commit 6f25762ffa
2 changed files with 31 additions and 53 deletions

View file

@ -47,7 +47,7 @@
function formatSelection(state) {
if (!state.id) return state.text; // optgroup
var data = makeDisplayData($("option[data-id=" + state.id + "]"));
return "<b>" + state.text + "</b> (" + data + ")";
return $('<span>').append($('<b>').text(state.text), ' (', data, ')');
}
// Terrible hack, adapted from https://github.com/select2/select2/issues/4436
@ -71,9 +71,6 @@
$("#id_language").select2({
templateResult: format,
templateSelection: formatSelection,
escapeMarkup: function (m) {
return m;
},
resultsAdapter: customAdapter
});
@ -156,7 +153,7 @@
white-space: nowrap
}
#language-select2 .select2-dropdown--above {
#language-select2.select2-dropdown--above {
display: flex;
flex-direction: column-reverse;
}