File tree 1 file changed +3
-5
lines changed
src/templates/signal_sets
1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -744,7 +744,6 @@ <h5 class="modal-title" id="selectedSignalsModalLabel">Selected indicators</h5>
744
744
const geoValues = { { geographic_granularities| safe } } ;
745
745
746
746
var relatedSignals = JSON . parse ( JSON . stringify ( { { related_signals| safe } } ) ) ;
747
- console . log ( relatedSignals . length )
748
747
749
748
var urlParams = JSON . parse ( JSON . stringify ( { { url_params_dict| safe } } ) ) ;
750
749
@@ -785,10 +784,9 @@ <h5 class="modal-title" id="selectedSignalsModalLabel">Selected indicators</h5>
785
784
} ) ;
786
785
787
786
788
- // Add event listener for filtering.
789
- window . addEventListener ( 'beforeunload' , ( ) => {
790
- document . getElementById ( 'filterSignalSetsForm' ) . reset ( ) ;
791
- } ) ;
787
+ // Added these two lines to disable bfcache (https://web.dev/articles/bfcache).
788
+ window . addEventListener ( 'unload' , function ( ) { } ) ;
789
+ window . addEventListener ( 'beforeunload' , function ( ) { } ) ;
792
790
793
791
document . getElementsByName ( 'modes' ) . forEach ( ( el ) => {
794
792
el . addEventListener ( 'change' , ( event ) => {
You can’t perform that action at this time.
0 commit comments