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

Merge pull request #340 from jellyfin/cvium-fix-record-series

Fix context in querySelector
This commit is contained in:
Anthony Lavado 2019-05-24 14:18:39 -04:00 committed by GitHub
commit 3f448fd12c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -194,7 +194,7 @@ define(['globalize', 'connectionManager', 'serverNotifications', 'require', 'loa
var isChecked = !button.querySelector('i').classList.contains('recordingIcon-active'); var isChecked = !button.querySelector('i').classList.contains('recordingIcon-active');
if (isChecked) { if (isChecked) {
context.querySelector('.recordSeriesContainer').classList.remove('hide'); options.parent.querySelector('.recordSeriesContainer').classList.remove('hide');
if (!this.SeriesTimerId) { if (!this.SeriesTimerId) {
var promise = this.TimerId ? var promise = this.TimerId ?
recordingHelper.changeRecordingToSeries(apiClient, this.TimerId, options.programId) : recordingHelper.changeRecordingToSeries(apiClient, this.TimerId, options.programId) :