[BUGFIX][INSTALL] Selecting existing database should check radio button
authorSteffen Gebert <steffen.gebert@typo3.org>
Thu, 2 Jun 2011 13:52:50 +0000 (15:52 +0200)
committerJigal van Hemert <jigal@xs4all.nl>
Sat, 25 Jun 2011 06:22:53 +0000 (08:22 +0200)
Due to a JavaScript error the corresponding radio button in Step 2 of
the 1-2-3 wizard is not automatically checked, when the dropdown menu
to select an existing database changes.

Change-Id: Idc7c65a268bd7dd67004a88a4c49457f11c022de
Resolves: #11765
Reviewed-on: http://review.typo3.org/2506
Reviewed-by: Philipp Gampe
Tested-by: Philipp Gampe
Reviewed-by: Stefan Neufeind
Tested-by: Stefan Neufeind
Reviewed-by: Jigal van Hemert
Tested-by: Jigal van Hemert
typo3/sysext/install/Resources/Private/Templates/StepOutput.html

index 31b6fa9..3c339de 100644 (file)
@@ -87,7 +87,7 @@
                                                <div>
                                                        <label for="t3-install-123-newdatabase">###LLOPTION1###</label>
                                                        <p>###LLREMARK1###</p>
-                                                       <input id="t3-install-123-newdatabase" class="t3-install-form-input-text" type="text" name="TYPO3_INSTALL[localconf.php][NEW_DATABASE_NAME]" onchange="this.form.db_select_option[0].checked=true" />
+                                                       <input id="t3-install-123-newdatabase" class="t3-install-form-input-text" type="text" name="TYPO3_INSTALL[localconf.php][NEW_DATABASE_NAME]" onfocus="document.getElementById('t3-install-form-db-select-new').checked=true" />
                                                </div>
                                        </li>
                                        <li>
@@ -95,7 +95,7 @@
                                                <div>
                                                        <label for="t3-install-123-database">###LLOPTION2###</label>
                                                        <p>###LLREMARK2###</p>
-                                                       <select id="t3-install-123-database" name="TYPO3_INSTALL[localconf.php][typo_db]" onchange="this.form.db_select_option[1].checked=true">
+                                                       <select id="t3-install-123-database" name="TYPO3_INSTALL[localconf.php][typo_db]" onfocus="document.getElementById('t3-install-form-db-select-existing').checked=true">
                                                                <option value="">Select database</option>
                                                                <!-- ###DATABASEOPTIONS### begin -->
                                                                <option value="###DATABASEVALUE###" ###DATABASESELECTED###>###DATABASENAME###</option>