Sfoglia il codice sorgente

Cannot create an account with sqlite

https://github.com/FreshRSS/FreshRSS/issues/770
Alexandre Alapetite 11 anni fa
parent
commit
f7a502b06e
1 ha cambiato i file con 7 aggiunte e 0 eliminazioni
  1. 7 0
      app/install.php

+ 7 - 0
app/install.php

@@ -741,6 +741,13 @@ function printStep3() {
 		<script>
 			function mySqlShowHide() {
 				document.getElementById('mysql').style.display = document.getElementById('type').value === 'mysql' ? 'block' : 'none';
+				if (document.getElementById('type').value !== 'mysql') {
+					document.getElementById('host').value = '';
+					document.getElementById('user').value = '';
+					document.getElementById('pass').value = '';
+					document.getElementById('base').value = '';
+					document.getElementById('prefix').value = '';
+				}
 			}
 			mySqlShowHide();
 		</script>