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

Update recordingeditor.js

This commit is contained in:
Cameron 2020-08-11 18:34:28 +01:00
parent abd6e02151
commit 0a9632b531

View file

@ -21,6 +21,12 @@ let currentItemId;
let currentServerId;
let currentResolve;
function deleteTimer(apiClient, timerId) {
return import('recordingHelper').then(({ default: recordingHelper }) => {
recordingHelper.cancelTimerWithConfirmation(timerId, apiClient.serverId());
});
}
function renderTimer(context, item, apiClient) {
context.querySelector('#txtPrePaddingMinutes').value = item.PrePaddingSeconds / 60;
context.querySelector('#txtPostPaddingMinutes').value = item.PostPaddingSeconds / 60;
@ -58,7 +64,7 @@ function init(context) {
context.querySelector('.btnCancelRecording').addEventListener('click', function () {
const apiClient = connectionManager.getApiClient(currentServerId);
(apiClient, currentItemId).then(function () {
deleteTimer(apiClient, currentItemId).then(function () {
closeDialog(true);
});
});