mirror of
https://github.com/hkalexling/Mango.git
synced 2026-04-25 00:00:52 -04:00
Fix duplicating options on the download page
This commit is contained in:
@@ -156,8 +156,8 @@ const search = () => {
|
|||||||
langs.unshift('All');
|
langs.unshift('All');
|
||||||
group_names.unshift('All');
|
group_names.unshift('All');
|
||||||
|
|
||||||
$('select#lang-select').append(langs.map(e => `<option>${e}</option>`).join(''));
|
$('select#lang-select').html(langs.map(e => `<option>${e}</option>`).join(''));
|
||||||
$('select#group-select').append(group_names.map(e => `<option>${e}</option>`).join(''));
|
$('select#group-select').html(group_names.map(e => `<option>${e}</option>`).join(''));
|
||||||
|
|
||||||
$('#filter-form').removeAttr('hidden');
|
$('#filter-form').removeAttr('hidden');
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user