File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
src/templates/signal_sets Expand file tree Collapse file tree 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>
744744 const geoValues = { { geographic_granularities| safe } } ;
745745
746746 var relatedSignals = JSON . parse ( JSON . stringify ( { { related_signals| safe } } ) ) ;
747- console . log ( relatedSignals . length )
748747
749748 var urlParams = JSON . parse ( JSON . stringify ( { { url_params_dict| safe } } ) ) ;
750749
@@ -785,10 +784,9 @@ <h5 class="modal-title" id="selectedSignalsModalLabel">Selected indicators</h5>
785784 } ) ;
786785
787786
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 ( ) { } ) ;
792790
793791 document . getElementsByName ( 'modes' ) . forEach ( ( el ) => {
794792 el . addEventListener ( 'change' , ( event ) => {
You can’t perform that action at this time.
0 commit comments