1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Add suggestions

This commit is contained in:
LJQ 2024-08-26 19:50:04 +08:00
parent 4c7a77ce7b
commit 3b7d159749

View file

@ -298,17 +298,19 @@ function bindAll(elems, eventName, fn) {
} }
} }
function onResetClick(e) { function onResetClick() {
const resetElementId = ['#txtName', '#txtOriginalName', '#txtSortName', '#txtCommunityRating', '#txtCriticRating', '#txtIndexNumber', const resetElementId = ['#txtName', '#txtOriginalName', '#txtSortName', '#txtCommunityRating', '#txtCriticRating', '#txtIndexNumber',
'#txtAirsBeforeSeason', '#txtAirsAfterSeason', '#txtAirsBeforeEpisode', '#txtParentIndexNumber', '#txtAlbum', '#txtAirsBeforeSeason', '#txtAirsAfterSeason', '#txtAirsBeforeEpisode', '#txtParentIndexNumber', '#txtAlbum',
'#txtAlbumArtist', '#txtArtist', '#txtOverview', '#selectStatus', '#txtAirTime', '#txtPremiereDate', '#txtDateAdded', '#txtEndDate', '#txtAlbumArtist', '#txtArtist', '#txtOverview', '#selectStatus', '#txtAirTime', '#txtPremiereDate', '#txtDateAdded', '#txtEndDate',
'#txtProductionYear', '#selectHeight', '#txtOriginalAspectRatio', '#select3dFormat', '#selectOfficialRating', '#selectCustomRating', '#txtProductionYear', '#selectHeight', '#txtOriginalAspectRatio', '#select3dFormat', '#selectOfficialRating', '#selectCustomRating',
'#txtSeriesRuntime', '#txtTagline']; '#txtSeriesRuntime', '#txtTagline'];
const form = e.target.parentElement.parentElement.parentElement; const form = currentContext?.querySelector('form');
resetElementId.forEach(function (id) { resetElementId.forEach(function (id) {
form.querySelector(id).value = null; form.querySelector(id).value = null;
}); });
form.querySelector('#selectDisplayOrder').value = ''; form.querySelector('#selectDisplayOrder').value = '';
form.querySelector('#selectLanguage').value = '';
form.querySelector('#selectCountry').value = '';
form.querySelector('#listGenres').innerHTML = ''; form.querySelector('#listGenres').innerHTML = '';
form.querySelector('#listTags').innerHTML = ''; form.querySelector('#listTags').innerHTML = '';
form.querySelector('#listStudios').innerHTML = ''; form.querySelector('#listStudios').innerHTML = '';