mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Add suggestions
This commit is contained in:
parent
4c7a77ce7b
commit
3b7d159749
1 changed files with 4 additions and 2 deletions
|
@ -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 = '';
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue