1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00
This commit is contained in:
Cameron 2020-08-07 09:31:46 +01:00
parent abafddfd55
commit abd6e02151

View file

@ -15,22 +15,12 @@ import 'css!./recordingcreator';
import 'material-icons';
import 'flexStyles';
/*eslint prefer-const: "error"*/
let currentDialog;
let recordingDeleted = false;
let currentItemId;
let currentServerId;
let currentResolve;
function deleteTimer(apiClient, timerId) {
return new Promise(function (resolve, reject) {
require(['recordingHelper'], function (recordingHelper) {
recordingHelper.cancelTimerWithConfirmation(timerId, apiClient.serverId()).then(resolve, reject);
});
});
}
function renderTimer(context, item, apiClient) {
context.querySelector('#txtPrePaddingMinutes').value = item.PrePaddingSeconds / 60;
context.querySelector('#txtPostPaddingMinutes').value = item.PostPaddingSeconds / 60;
@ -68,7 +58,7 @@ function init(context) {
context.querySelector('.btnCancelRecording').addEventListener('click', function () {
const apiClient = connectionManager.getApiClient(currentServerId);
(apiClient, currentItemId).then(function () {
(apiClient, currentItemId).then(function () {
closeDialog(true);
});
});