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:
b5a1e0c
)
Bah i need some sleep...
author
Gilles van den Hoven
<gilles0181@gmail.com>
Tue, 27 Jun 2006 21:36:45 +0000
(21:36 +0000)
committer
Gilles van den Hoven
<gilles0181@gmail.com>
Tue, 27 Jun 2006 21:36:45 +0000
(21:36 +0000)
form/form.js
patch
|
blob
|
history
diff --git
a/form/form.js
b/form/form.js
index
6404374
..
5194d6f
100644
(file)
--- a/
form/form.js
+++ b/
form/form.js
@@
-198,7
+198,7
@@
$.fn.serialize = function() {
if ((p == 'SELECT' || p == 'OPTGROUP') && !this.selected) return;
\r
\r
var n = this.name;
\r
if ((p == 'SELECT' || p == 'OPTGROUP') && !this.selected) return;
\r
\r
var n = this.name;
\r
- if (!n) n = (p == 'OPTGROUP') ? par.parentNode.name : par.name;
\r
+ if (!n) n = (p == 'OPTGROUP') ? par.parentNode.name : (p == 'SELECT') ? par.name : this.name;
\r
if (n == undefined) return;
\r
\r
a.push({name: n, value: this.value});
\r
if (n == undefined) return;
\r
\r
a.push({name: n, value: this.value});
\r