git.asbjorn.biz
/
jquery.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
55f0806
)
bah, forgot to test it, this is the fix
author
Gilles van den Hoven
<gilles0181@gmail.com>
Tue, 27 Jun 2006 21:26:25 +0000
(21:26 +0000)
committer
Gilles van den Hoven
<gilles0181@gmail.com>
Tue, 27 Jun 2006 21:26:25 +0000
(21:26 +0000)
form/form.js
patch
|
blob
|
history
diff --git
a/form/form.js
b/form/form.js
index
bec8870
..
6404374
100644
(file)
--- a/
form/form.js
+++ b/
form/form.js
@@
-198,9
+198,7
@@
$.fn.serialize = function() {
if ((p == 'SELECT' || p == 'OPTGROUP') && !this.selected) return;
\r
\r
var n = this.name;
\r
- if (!n && p == 'OPTGROUP' && (par = par.parentNode))
\r
- n = par.name;
\r
-
\r
+ if (!n) n = (p == 'OPTGROUP') ? par.parentNode.name : par.name;
\r
if (n == undefined) return;
\r
\r
a.push({name: n, value: this.value});
\r