File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -2593,6 +2593,8 @@ function refresh() {
25932593
25942594 if ( ajax_inprogress_old == wvar . query ) {
25952595 return ;
2596+ } else {
2597+ document . getElementById ( "timeperiod" ) . disabled = false ;
25962598 }
25972599
25982600 ajax_inprogress = true ;
@@ -2644,7 +2646,9 @@ function refresh() {
26442646 ajax_inprogress = false ;
26452647 } ,
26462648 complete : function ( request , textStatus ) {
2647- document . getElementById ( "timeperiod" ) . disabled = false ;
2649+ if ( ajax_inprogress_old != wvar . query ) {
2650+ document . getElementById ( "timeperiod" ) . disabled = false ;
2651+ }
26482652 clearTimeout ( periodical ) ;
26492653 if ( Object . keys ( vehicles ) . length > 1 ) {
26502654 navigator . setAppBadge ( Object . keys ( vehicles ) . length ) ; //show number of vehicles on PWA taskbar
@@ -2708,6 +2712,8 @@ function refreshSingleOld(serial) {
27082712 if ( serial == ajax_inprogress_old ) {
27092713 return ;
27102714 }
2715+
2716+ document . getElementById ( "timeperiod" ) . disabled = true ;
27112717
27122718 var data_url = "https://api.v2.sondehub.org/sonde/" + encodeURIComponent ( serial ) ;
27132719
You can’t perform that action at this time.
0 commit comments