Remove hostname handler
This commit is contained in:
parent
06c835f7b6
commit
f87b1b5f4a
20
calendar.js
20
calendar.js
@ -153,24 +153,6 @@ const toggleButton = {
|
||||
},
|
||||
};
|
||||
|
||||
function appendSonarrHostnames()
|
||||
{
|
||||
const names = icsUrls.map(item => item.name);
|
||||
|
||||
for (const name of names) {
|
||||
const rows = document.querySelectorAll(`.${name}`);
|
||||
|
||||
for (const row of rows) {
|
||||
const lastCell = row.querySelector('td:last-child');
|
||||
|
||||
const hostname = document.createElement('span');
|
||||
hostname.className = 'float-end';
|
||||
hostname.textContent = name;
|
||||
lastCell.insertAdjacentElement('beforeend', hostname);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
async function loadSonarrCalendar(shouldScroll = false)
|
||||
{
|
||||
const calendarElement = document.querySelector('#sonarr-calendar');
|
||||
@ -209,8 +191,6 @@ async function loadSonarrCalendar(shouldScroll = false)
|
||||
const message = document.querySelector('#status-message');
|
||||
try {
|
||||
calendar.render();
|
||||
|
||||
appendSonarrHostnames();
|
||||
|
||||
if (message) {
|
||||
message.remove();
|
||||
|
Loading…
Reference in New Issue
Block a user