mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
modify necessary void replacements
This commit is contained in:
parent
87f47d8001
commit
408f2b2bda
11 changed files with 33 additions and 30 deletions
|
@ -51,7 +51,7 @@ import template from './accessSchedule.template.html';
|
|||
};
|
||||
|
||||
if (parseFloat(updatedSchedule.StartHour) >= parseFloat(updatedSchedule.EndHour)) {
|
||||
return void alert(globalize.translate('ErrorStartHourGreaterThanEnd'));
|
||||
return alert(globalize.translate('ErrorStartHourGreaterThanEnd'));
|
||||
}
|
||||
|
||||
context.submitted = true;
|
||||
|
|
|
@ -23,7 +23,7 @@ import ServerConnections from './ServerConnections';
|
|||
if (!actionableParent || actionableParent.classList.contains('cardContent')) {
|
||||
apiClient.getJSON(apiClient.getUrl('Users/' + userId + '/Items/Latest', options)).then(function (items) {
|
||||
if (items.length === 1) {
|
||||
return void appRouter.showItem(items[0]);
|
||||
return appRouter.showItem(items[0]);
|
||||
}
|
||||
|
||||
const url = 'details?id=' + itemId + '&serverId=' + serverId;
|
||||
|
|
|
@ -323,7 +323,7 @@ import template from './libraryoptionseditor.template.html';
|
|||
function onImageFetchersContainerClick(e) {
|
||||
const btnImageOptionsForType = dom.parentWithClass(e.target, 'btnImageOptionsForType');
|
||||
if (btnImageOptionsForType) {
|
||||
return void showImageOptionsForType(dom.parentWithClass(btnImageOptionsForType, 'imageFetcher').getAttribute('data-type'));
|
||||
return showImageOptionsForType(dom.parentWithClass(btnImageOptionsForType, 'imageFetcher').getAttribute('data-type'));
|
||||
}
|
||||
onSortableContainerClick.call(this, e);
|
||||
}
|
||||
|
|
|
@ -122,7 +122,7 @@ export default function (page, providerId, options) {
|
|||
const selectedListingsId = $('#selectListing', page).val();
|
||||
|
||||
if (!selectedListingsId) {
|
||||
return void Dashboard.alert({
|
||||
return Dashboard.alert({
|
||||
message: globalize.translate('ErrorPleaseSelectLineup')
|
||||
});
|
||||
}
|
||||
|
@ -168,7 +168,7 @@ export default function (page, providerId, options) {
|
|||
|
||||
function refreshListings(value) {
|
||||
if (!value) {
|
||||
return void $('#selectListing', page).html('');
|
||||
return $('#selectListing', page).html('');
|
||||
}
|
||||
|
||||
loading.show();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue