[Phpmyadmin-git] [SCM] phpMyAdmin branch, master, updated. RELEASE_3_4_0BETA3-951-gaa6fe09
Madhura Jayaratne
madhuracj at users.sourceforge.net
Thu Feb 24 04:12:48 CET 2011
The branch, master has been updated
via aa6fe093d629a903c3eaea07ff06509e8e5ab347 (commit)
from 3d8300a70b25ed38598cd3f2faafa15091c8f0ef (commit)
- Log -----------------------------------------------------------------
commit aa6fe093d629a903c3eaea07ff06509e8e5ab347
Author: Madhura Jayaratne <madhura.cj at gmail.com>
Date: Tue Feb 22 04:31:00 2011 +0530
Inline edit fine-tuned for enum fields
-----------------------------------------------------------------------
Summary of changes:
js/sql.js | 2 +-
sql.php | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/js/sql.js b/js/sql.js
index 993b620..e5daf03 100644
--- a/js/sql.js
+++ b/js/sql.js
@@ -476,7 +476,7 @@ $(document).ready(function() {
// if 'chechbox_null_<field_name>_<row_index>' is clicked empty the corresponding select/editor.
$('.checkbox_null_' + field_name + '_' + this_row_index).bind('click', function(e) {
if ($this_field.is('.enum, .set')) {
- $this_field.find('select').selectedIndex = -1;
+ $this_field.find('select').attr('value', '');
} else if ($this_field.is('.relation')) {
// if the dropdown is there to select the foreign value
if ($this_field.find('select').length > 0) {
diff --git a/sql.php b/sql.php
index 7dbfe9e..42dff07 100644
--- a/sql.php
+++ b/sql.php
@@ -100,7 +100,7 @@ if(isset($_REQUEST['get_enum_values']) && $_REQUEST['get_enum_values'] == true)
$values = explode(',', str_replace($search, '', $field_info_result[0]['Type']));
- $dropdown = '';
+ $dropdown = '<option value=""> </option>';
foreach($values as $value) {
$dropdown .= '<option value="' . htmlspecialchars($value) . '"';
if($value == $_REQUEST['curr_value']) {
hooks/post-receive
--
phpMyAdmin
More information about the Git
mailing list