@@ -69,7 +69,7 @@ var defaultFWUpdateZIPdirPath = '/home/root';
6969var isEMailConfigEnabledInAMTM = false ;
7070var scriptAutoUpdateCronSchedHR = ' TBD' ;
7171var fwAutoUpdateCheckCronSchedHR = ' TBD' ;
72- var isScriptUpdateAvailable = false ;
72+ var isScriptUpdateAvailable = ' TBD ' ;
7373
7474const validationErrorMsg = ' Validation failed. Please correct invalid value and try again.' ;
7575
@@ -1570,6 +1570,7 @@ function InitializeFields()
15701570 // fallback to 'DISABLED' if custom_settings.FW_Update_Check is missing //
15711571
15721572 $ (' #KeepConfigFile' ).prop (' checked' ,false );
1573+ $ (' #ForceScriptUpdateCheck' ).prop (' checked' ,false );
15731574 $ (' #BypassPostponedDays' ).prop (' checked' ,false );
15741575 $ (' #RunLoginTestOnSave' ).prop (' checked' ,false );
15751576
@@ -2284,23 +2285,20 @@ function UpdateMerlinAUScript ()
22842285{
22852286 console .log (" Initiating MerlinAU script update…" );
22862287
2287- let forceUpdateBox = document .getElementById (' ForceScriptUpdateCheck' );
2288- let actionScriptName = forceUpdateBox .checked
2289- ? ' start_MerlinAUforceupdate'
2290- : ' start_MerlinAUscript_update' ;
2288+ if (! confirm (" Are you sure you want to check for MerlinAU script updates?" ))
2289+ { return ; }
22912290
2292- let ok = confirm (
2293- forceUpdateBox .checked
2294- ? " INSTALL UPDATE: install immediately—even if current.\n\n Continue?"
2295- : " Prompt if a newer version exists. (Does NOT install!) \n\n Continue?" );
2296- if (! ok) return false ; // <-- blocks submission
2291+ let actionScriptValue;
2292+ let ForceScriptUpdateCheck = document .getElementById (' ForceScriptUpdateCheck' );
2293+ if (! ForceScriptUpdateCheck .checked )
2294+ { actionScriptValue = ' start_MerlinAUupdate' ; }
2295+ else
2296+ { actionScriptValue = ' start_MerlinAUupdate_forceupdate' ; }
22972297
2298- document .form .action_script .value = actionScriptName ;
2299- document .form .action_wait .value = 10 ;
2298+ document .form .action_script .value = actionScriptValue ;
2299+ document .form .action_wait .value = 10 ;
23002300 showLoading ();
23012301 document .form .submit ();
2302-
2303- return false ;
23042302}
23052303
23062304/* *----------------------------------------**/
@@ -2689,7 +2687,7 @@ function initializeCollapsibleSections()
26892687<td style=" text-align: center; border: none; " id=" scriptUpdateCell " >
26902688 <input type=" submit "
26912689 id=" ScriptUpdateButton "
2692- onclick=" return UpdateMerlinAUScript(); "
2690+ onclick=" UpdateMerlinAUScript(); return false ;"
26932691 value=" Script Update Check "
26942692 class=" button_gen savebutton "
26952693 title=" Check for latest MerlinAU script updates "
0 commit comments