Skip to content

Commit cce1853

Browse files
committed
Change the way of submited form is retreived
In certain conditions 'this' is not the form but the window, this cause the submit button to not be found when checked if button is clicked This patch retrieve form from the input element
1 parent 6bf24a5 commit cce1853

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
@@ -903,7 +903,7 @@ function captureSubmittingElement(e) {
903903
}
904904
target = t[0];
905905
}
906-
var form = this;
906+
var form = target.form;
907907
form.clk = target;
908908
if (target.type == 'image') {
909909
if (e.offsetX !== undefined) {

0 commit comments

Comments
 (0)