fix status selection as well

This commit is contained in:
Miha Mencin 2020-01-15 15:22:05 +01:00
parent df43c4c15f
commit 5085e55f22

View file

@ -8,7 +8,7 @@ var StatusColumnHelper = (function() {
selectedOption = `<option value="${value.value}">${value.label}</option>`;
}
return $(`<select
return $(`<select
id="${select}"
data-placeholder = "${I18n.t('repositories.table.status.set_status')}"
data-ajax-url = "${url}"
@ -33,6 +33,7 @@ var StatusColumnHelper = (function() {
dropdownSelector.init('#' + select, {
singleSelect: true,
selectAppearance: 'simple',
closeOnSelect: true,
onChange: function() {
var values = dropdownSelector.getValues('#' + select);
$hiddenField.val(values);