Skip to content

Commit

Permalink
Fix ajax forms without action attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
enumag committed Dec 10, 2015
1 parent 2eaf1d6 commit 497cbf3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nette.ajax.js
Expand Up @@ -176,7 +176,7 @@ var nette = function () {
}

if (!settings.url) {
settings.url = analyze.form ? analyze.form.attr('action') : ui.href;
settings.url = analyze.form ? analyze.form.attr('action') || window.location.pathname + window.location.search : ui.href;
}
if (!settings.type) {
settings.type = analyze.form ? analyze.form.attr('method') : 'get';
Expand Down

0 comments on commit 497cbf3

Please sign in to comment.