Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
jquery
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
夏彬
jquery
Commits
5ee555c9
Commit
5ee555c9
authored
May 31, 2006
by
Gilles van den Hoven
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
see mailinglist
parent
d7856eb2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
6 deletions
+12
-6
ajax.js
ajax/ajax.js
+12
-6
No files found.
ajax/ajax.js
View file @
5ee555c9
...
@@ -146,11 +146,11 @@ $.fn.formValues = function(sButton) {
...
@@ -146,11 +146,11 @@ $.fn.formValues = function(sButton) {
// Loop the shite
// Loop the shite
$
(
'*'
,
this
).
each
(
function
()
{
$
(
'*'
,
this
).
each
(
function
()
{
// Skip elements not of the types in elp
// Skip elements not of the types in elp
if
(
!
elp
[
this
.
tagName
])
if
(
!
elp
[
this
.
tagName
.
toUpperCase
()
])
return
;
return
;
// Skip disabled elements
// Skip disabled elements
, submit buttons and image buttons
if
(
this
.
disabled
)
if
(
(
this
.
disabled
)
||
(
this
.
type
==
'submit'
)
||
(
this
.
type
==
'image'
)
)
return
;
return
;
// Skip non-selected nodes
// Skip non-selected nodes
...
@@ -169,9 +169,15 @@ $.fn.formValues = function(sButton) {
...
@@ -169,9 +169,15 @@ $.fn.formValues = function(sButton) {
});
});
// Add submit button if needed
// Add submit button if needed
if
(
sButton
&&
(
sButton
!==
null
))
if
(
sButton
&&
(
sButton
!==
null
))
{
a
.
push
({
name
:
sButton
,
value
:
'x'
});
var
el
=
$
(
sButton
).
get
(
0
);
a
.
push
({
name
:
el
.
name
||
el
.
id
||
el
.
parentNode
.
name
||
el
.
parentNode
.
id
,
value
:
el
.
value
});
}
// Done
return
a
;
return
a
;
};
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment