Explorar el Código

Cannot create an account with sqlite

https://github.com/FreshRSS/FreshRSS/issues/770
Alexandre Alapetite hace 11 años
padre
commit
f7a502b06e
Se han modificado 1 ficheros con 7 adiciones y 0 borrados
  1. 7 0
      app/install.php

+ 7 - 0
app/install.php

@@ -741,6 +741,13 @@ function printStep3() {
 		<script>
 		<script>
 			function mySqlShowHide() {
 			function mySqlShowHide() {
 				document.getElementById('mysql').style.display = document.getElementById('type').value === 'mysql' ? 'block' : 'none';
 				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();
 			mySqlShowHide();
 		</script>
 		</script>