jarjonam 5 years ago
parent
commit
3d9f8da21a
1 changed files with 2 additions and 0 deletions
  1. 2 0
      pi/web/main.js

+ 2 - 0
pi/web/main.js

@@ -100,9 +100,11 @@ function onload(){ //Bind events
 	})
 	})
 	document.querySelector('#waveformGraphClear').addEventListener("click", function(event){
 	document.querySelector('#waveformGraphClear').addEventListener("click", function(event){
 		eel.clean_old_files("data/waveforms/", 0)
 		eel.clean_old_files("data/waveforms/", 0)
+		loadGraphList()
 	})
 	})
 	document.querySelector('#longGraphClear').addEventListener("click", function(event){
 	document.querySelector('#longGraphClear').addEventListener("click", function(event){
 		eel.clean_long_term()
 		eel.clean_long_term()
+		loadLongGraph()
 	})
 	})
 
 
 	// Information for simple usage
 	// Information for simple usage