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 'material-icons';
import 'flexStyles'; import 'flexStyles';
/*eslint prefer-const: "error"*/
let currentDialog; let currentDialog;
let recordingDeleted = false; let recordingDeleted = false;
let currentItemId; let currentItemId;
let currentServerId; let currentServerId;
let currentResolve; 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) { function renderTimer(context, item, apiClient) {
context.querySelector('#txtPrePaddingMinutes').value = item.PrePaddingSeconds / 60; context.querySelector('#txtPrePaddingMinutes').value = item.PrePaddingSeconds / 60;
context.querySelector('#txtPostPaddingMinutes').value = item.PostPaddingSeconds / 60; context.querySelector('#txtPostPaddingMinutes').value = item.PostPaddingSeconds / 60;
@ -67,8 +57,8 @@ function init(context) {
context.querySelector('.btnCancelRecording').addEventListener('click', function () { context.querySelector('.btnCancelRecording').addEventListener('click', function () {
const apiClient = connectionManager.getApiClient(currentServerId); const apiClient = connectionManager.getApiClient(currentServerId);
(apiClient, currentItemId).then(function () { (apiClient, currentItemId).then(function () {
closeDialog(true); closeDialog(true);
}); });
}); });