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

Merge pull request #2215 from dmitrylyzo/fix-livetv-pages

Fix multiplication of event listeners on Live TV pages
This commit is contained in:
dkanada 2020-12-12 00:15:55 +09:00 committed by GitHub
commit 568968f654
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 96 additions and 100 deletions

View file

@ -56,7 +56,6 @@ function showSaveMessage(recordingPathChanged) {
}
}
export default function () {
$(document).on('pageinit', '#liveTvSettingsPage', function () {
const page = this;
$('.liveTvSettingsForm').off('submit', onSubmit).on('submit', onSubmit);
@ -127,4 +126,3 @@ export default function () {
loadPage(page, config);
});
});
}

View file

@ -293,7 +293,6 @@ function onDevicesListClick(e) {
}
}
export default function () {
$(document).on('pageinit', '#liveTvStatusPage', function () {
const page = this;
$('.btnAddDevice', page).on('click', function () {
@ -325,4 +324,3 @@ export default function () {
button: page.querySelector('.btnRefresh')
});
});
}