mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Remove unused functions
This commit is contained in:
parent
2f297971d7
commit
33a5533b11
1 changed files with 0 additions and 30 deletions
|
@ -277,36 +277,6 @@ function save(instance, context, userId, userSettings, apiClient, enableSaveConf
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function setSelectValue(select, value, defaultValue) {
|
|
||||||
select.value = value;
|
|
||||||
|
|
||||||
if (select.selectedIndex < 0) {
|
|
||||||
select.value = defaultValue;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function onMaxVideoWidthChange(e) {
|
|
||||||
const context = this.options.element;
|
|
||||||
|
|
||||||
const selectVideoInNetworkQuality = context.querySelector('.selectVideoInNetworkQuality');
|
|
||||||
const selectVideoInternetQuality = context.querySelector('.selectVideoInternetQuality');
|
|
||||||
const selectChromecastVideoQuality = context.querySelector('.selectChromecastVideoQuality');
|
|
||||||
|
|
||||||
const selectVideoInNetworkQualityValue = selectVideoInNetworkQuality.value;
|
|
||||||
const selectVideoInternetQualityValue = selectVideoInternetQuality.value;
|
|
||||||
const selectChromecastVideoQualityValue = selectChromecastVideoQuality.value;
|
|
||||||
|
|
||||||
const maxVideoWidth = parseInt(e.target.value || '0', 10) || 0;
|
|
||||||
|
|
||||||
fillQuality(selectVideoInNetworkQuality, true, 'Video', maxVideoWidth);
|
|
||||||
fillQuality(selectVideoInternetQuality, false, 'Video', maxVideoWidth);
|
|
||||||
fillChromecastQuality(selectChromecastVideoQuality, maxVideoWidth);
|
|
||||||
|
|
||||||
setSelectValue(selectVideoInNetworkQuality, selectVideoInNetworkQualityValue, '');
|
|
||||||
setSelectValue(selectVideoInternetQuality, selectVideoInternetQualityValue, '');
|
|
||||||
setSelectValue(selectChromecastVideoQuality, selectChromecastVideoQualityValue, '');
|
|
||||||
}
|
|
||||||
|
|
||||||
function onSubmit(e) {
|
function onSubmit(e) {
|
||||||
const self = this;
|
const self = this;
|
||||||
const apiClient = ServerConnections.getApiClient(self.options.serverId);
|
const apiClient = ServerConnections.getApiClient(self.options.serverId);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue