Browse Source

Merge remote-tracking branch 'origin/dev' into FreshRSS/dev

Alexandre Alapetite 11 years ago
parent
commit
9a189aea3e
1 changed files with 7 additions and 0 deletions
  1. 7 0
      app/install.php

+ 7 - 0
app/install.php

@@ -743,6 +743,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>