Skip to content

Commit 6e2c7e5

Browse files
committed
Use method attribute from form
1 parent 4f6c4ad commit 6e2c7e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jquery.pjax.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ function handleSubmit(event, container, options) {
125125
throw "$.pjax.submit requires a form element"
126126

127127
var defaults = {
128-
type: form.method.toUpperCase(),
128+
type: ($form.attr('method') || 'GET').toUpperCase(),
129129
url: $form.attr('action'),
130130
container: $form.attr('data-pjax'),
131131
target: form

0 commit comments

Comments
 (0)