Files
server/opt/psa/admin/plib/modules/galileo/resources/hideSecondDayEmailNotification.js
2026-01-07 20:52:11 +01:00

19 lines
612 B
JavaScript

var parentDiv = document.getElementById('notifications-placeholder');
if (parentDiv) {
parentDiv.style.display = 'none';
}
var handleHideSecondDayEmailNotification = setInterval(function () {
var elements = document.getElementsByName('ext-galileo-notification-secondDayEmailNotification_email');
if (elements.length === 1) {
var trElement = elements[0].closest("tr");
if (trElement) {
trElement.style.display = 'none';
}
}
if (parentDiv) {
parentDiv.style.display = 'block';
}
clearInterval(handleHideSecondDayEmailNotification);
}, 100);