This commit is contained in:
Louis Vézina 2020-02-02 12:52:00 -05:00
parent 1f82645e1d
commit e365607c16
1 changed files with 1 additions and 3 deletions

View File

@ -219,9 +219,7 @@
$.ajax({ $.ajax({
url: "{{ url_for('api.languages') }}?enabled=true", url: "{{ url_for('api.languages') }}?enabled=true",
success:function(data) { success:function(data) {
if ('{{settings.general.single_language}}' === 'True') {
$('#languages_select').append('<option value="None">None</option>'); $('#languages_select').append('<option value="None">None</option>');
}
$.each(data, function (i, item) { $.each(data, function (i, item) {
$('#languages_select').append('<option value="'+item.code2+'">'+item.name+'</option>'); $('#languages_select').append('<option value="'+item.code2+'">'+item.name+'</option>');
}); });