mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
lint
This commit is contained in:
parent
abafddfd55
commit
abd6e02151
1 changed files with 2 additions and 12 deletions
|
@ -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);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue