The branch, master has been updated
via bb28217cffd800194d56014d4151837f94d06714 (commit)
from c0c798b7cb469ded2b904a69da5f9a40d1c8e1b8 (commit)
- Log -----------------------------------------------------------------
commit bb28217cffd800194d56014d4151837f94d06714
Author: Aris Feryanto <[email protected]>
Date: Mon Nov 7 10:27:55 2011 +0800
Fix bug #3431427: Dropdown displaying results - setting NULL does not work
-----------------------------------------------------------------------
Summary of changes:
js/tbl_change.js | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/js/tbl_change.js b/js/tbl_change.js
index ddf40aa..8cb710a 100644
--- a/js/tbl_change.js
+++ b/js/tbl_change.js
@@ -29,11 +29,11 @@ function nullify(theType, urlField, md5Field, multi_edit)
// "SET" field , "ENUM" field with more than 20 characters
// or foreign key field (drop-down)
if (theType == 1 || theType == 3 || theType == 4) {
- rowForm.elements['field_' + md5Field + multi_edit +
'[]'].selectedIndex = -1;
+ rowForm.elements['fields' + multi_edit + '[' + md5Field +
']'].selectedIndex = -1;
}
// Other "ENUM" field
else if (theType == 2) {
- var elts = rowForm.elements['field_' + md5Field + multi_edit +
'[]'];
+ var elts = rowForm.elements['fields' + multi_edit + '[' + md5Field
+ ']'];
// when there is just one option in ENUM:
if (elts.checked) {
elts.checked = false;
@@ -47,7 +47,7 @@ function nullify(theType, urlField, md5Field, multi_edit)
}
// foreign key field (with browsing icon for foreign values)
else if (theType == 6) {
- rowForm.elements['field_' + md5Field + multi_edit + '[]'].value = '';
+ rowForm.elements['fields' + multi_edit + '[' + md5Field + ']'].value =
'';
}
// Other field types
else /*if (theType == 5)*/ {
hooks/post-receive
--
phpMyAdmin
------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Phpmyadmin-git mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/phpmyadmin-git