Skip to content

Commit 006b4e8

Browse files
committed
jquery-form#346; default 'method' to ajaxSettings value
1 parent d18b627 commit 006b4e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jquery.form.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ $.fn.ajaxSubmit = function(options) {
106106
options = $.extend(true, {
107107
url: url,
108108
success: $.ajaxSettings.success,
109-
type: method || 'GET',
109+
type: method || $.ajaxSettings.type,
110110
iframeSrc: /^https/i.test(window.location.href || '') ? 'javascript:false' : 'about:blank'
111111
}, options);
112112

0 commit comments

Comments
 (0)