Files
server/opt/psa/admin/plib/modules/galileo/resources/hideSecondDayEmailNotification.js
cutemeli 0bfc6c8425 Initial
2025-12-22 10:32:59 +00: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);