Skip to content

Commit c0e759c

Browse files
Merge pull request #417 from Martinski4GitHub/dev
Show blank field if Secondary Email not set.
2 parents 312db73 + 741c383 commit c0e759c

1 file changed

Lines changed: 12 additions & 5 deletions

File tree

MerlinAU.asp

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
<script language="JavaScript" type="text/javascript">
3030
3131
/**----------------------------**/
32-
/** Last Modified: 2025-Feb-25 **/
32+
/** Last Modified: 2025-Mar-01 **/
3333
/** Intended for 1.4.0 Release **/
3434
/**----------------------------**/
3535
@@ -1108,9 +1108,9 @@ function ToggleEmailDependents (isEmailNotifyChecked)
11081108
}
11091109
}
11101110
1111-
/**-------------------------------------**/
1112-
/** Added by Martinski W. [2025-Jan-27] **/
1113-
/**-------------------------------------**/
1111+
/**----------------------------------------**/
1112+
/** Modified by Martinski W. [2025-Mar-01] **/
1113+
/**----------------------------------------**/
11141114
function SetUpEmailNotificationFields()
11151115
{
11161116
let emailFormat = document.getElementById('emailFormat');
@@ -1119,8 +1119,15 @@ function SetUpEmailNotificationFields()
11191119
11201120
if (emailFormat)
11211121
{ emailFormat.value = custom_settings.FW_New_Update_EMail_FormatType || 'HTML'; }
1122+
1123+
// If not yet set show a blank field instead of 'TBD' //
11221124
if (secondaryEmail)
1123-
{ secondaryEmail.value = custom_settings.FW_New_Update_EMail_CC_Address || 'TBD'; }
1125+
{
1126+
if (custom_settings.FW_New_Update_EMail_CC_Address === 'TBD')
1127+
{ secondaryEmail.value = ''; }
1128+
else
1129+
{ secondaryEmail.value = custom_settings.FW_New_Update_EMail_CC_Address; }
1130+
}
11241131
11251132
if (emailNotificationsEnabled && emailFormat && secondaryEmail)
11261133
{

0 commit comments

Comments
 (0)