Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

Commit 6686c32

Browse files
author
Gabriel Schulhof
committed
Navigation: Honor formaction during submit. Fixes #3202.
1 parent 391714b commit 6686c32

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

js/jquery.mobile.navigation.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1413,7 +1413,8 @@ define( [
14131413
return false;
14141414
}
14151415

1416-
url = $form.attr( "action" );
1416+
url = ( $lastVClicked && $lastVClicked.attr( "formaction" ) ) ||
1417+
$form.attr( "action" );
14171418
method = ( $form.attr( "method" ) || "get" ).toLowerCase();
14181419

14191420
// If no action is specified, browsers default to using the

0 commit comments

Comments
 (0)