File tree Expand file tree Collapse file tree 2 files changed +19
-9
lines changed
Expand file tree Collapse file tree 2 files changed +19
-9
lines changed Original file line number Diff line number Diff line change @@ -413,8 +413,8 @@ <h2><i class="icon-car rfloat"></i>Chase Mode</h2>
413413 < div id ="zoom_warning " class ="lfloat slickbox " style ="width:250px; bottom: 0px; left: 50%; transform: translate(-50%, -50%); ">
414414 < div style ="width:250px "> Zoom in for realtime data!</ div >
415415 </ div >
416- < div id ="recovery_notice " class ="lfloat slickbox " onclick ="show_recoveries(); " style ="width:270px ; bottom: 0px ; left: 50%; transform: translate(-50%, -50%); display:none; ">
417- < div style ="width:270px "> < b > Click here to report a sonde recovery !</ b > </ div >
416+ < div id ="recovery_notice " class ="lfloat slickbox " onclick ="show_recoveries(); " style ="width:225px ; bottom: 35px ; left: 50%; transform: translate(-50%, -50%); display:none; ">
417+ < div style ="width:225px "> < b > Please report recovered sondes !</ b > </ div >
418418 </ div >
419419 </ div >
420420 < div id ="timebox " class ="present slickbox animate " style ="display: none ">
Original file line number Diff line number Diff line change @@ -1535,22 +1535,32 @@ function recoveryPopup(){
15351535
15361536 // If we're here, then we either don't have a valid viewer location,
15371537 // Or the viewer is within 500km. Show the popup.
1538- //console.log("Triggering Recovery Popup.")
1539- document . getElementById ( "recovery_notice" ) . style . display = "block" ;
1540- // Don't re-activate the popup again
1541- recovery_popup = false ;
1538+ var recoveryNotice = document . getElementById ( "recovery_notice" ) ;
1539+ if ( recoveryNotice ) {
1540+ recoveryNotice . style . display = "block" ;
1541+ }
15421542 return ;
15431543 }
15441544 }
1545- document . getElementById ( "recovery_notice" ) . style . display = "none" ;
1546- }
1545+ var recoveryNotice = document . getElementById ( "recovery_notice" ) ;
1546+ if ( recoveryNotice ) {
1547+ recoveryNotice . style . display = "none" ;
1548+ }
1549+ }
15471550
15481551function show_recoveries ( ) {
1552+ // Open the recovery reporting tab
15491553 if ( $ ( "#recoveriesbox" ) . is ( ':visible' ) == false ) {
15501554 $ ( '.nav .recoveries' ) . click ( ) ;
15511555 }
15521556
1553- document . getElementById ( "recovery_notice" ) . style . display = "none" ;
1557+ // Hide the recovery notice
1558+ var recoveryNotice = document . getElementById ( "recovery_notice" ) ;
1559+ if ( recoveryNotice ) {
1560+ recoveryNotice . style . display = "none" ;
1561+ }
1562+
1563+ // Don't show the recovery notice again.
15541564 recovery_popup = false ;
15551565}
15561566
You can’t perform that action at this time.
0 commit comments