support remote data in beta-test selectpicker (#529)

This commit is contained in:
Kevin Papst
2019-01-31 12:59:25 +01:00
committed by GitHub
parent 974806d145
commit 1b42aed34c
8 changed files with 6 additions and 7 deletions

View File

@@ -111,7 +111,11 @@ $(function() {
$select.append('<option value="' + obj.id + '">' + obj.name + '</option>');
});
// if we don't trigger the change, the other selects won't be resetted
$select.trigger('change');
// if the beta test kimai.theme.select_type is active, this will tell the selects to refresh
$('.selectpicker').selectpicker('refresh');
}
});
});