Patch #1225452, fixes JS quirk for accessing select value

This commit is contained in:
Garvin Hicking
2005-06-22 12:02:40 +00:00
parent e1822096f5
commit ab8050e750
2 changed files with 5 additions and 1 deletions

View File

@@ -5,6 +5,10 @@ phpMyAdmin - Changelog
$Id$
$Source$
2005-06-22 Garvin Hicking
* tbl_properties.inc.php: Patch #1225452, JS error for
getting the value of a select field in certain browsers.
2005-06-19 Marc Delisle <lem9@users.sourceforge.net>
* lang/chinese_traditional: Updates, thanks to Siu Sun
* lang/italian: Updates, thanks to Pietro Danesi

View File

@@ -237,7 +237,7 @@ for ($i = 0 ; $i < $num_fields; $i++) {
$ci++;
$content_cells[$i][$ci] = '<select name="field_type[]" id="field_' . $i . '_' . ($ci - $ci_offset) . '" ';
if (PMA_MYSQL_INT_VERSION >= 40102) {
$content_cells[$i][$ci] .= 'onchange="display_field_options(this.value,' . $i .')" ';
$content_cells[$i][$ci] .= 'onchange="display_field_options(this.options[this.selectedIndex].value,' . $i .')" ';
}
$content_cells[$i][$ci] .= '>' . "\n";