Skip to content

Commit

Permalink
Missing return
Browse files Browse the repository at this point in the history
  • Loading branch information
n3t authored and paveljanda committed Mar 17, 2020
1 parent 37f745e commit a282cf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/datagrid.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ if (typeof naja !== "undefined") {
$.nette.load();
};
dataGridSubmitForm = function (form) {
form.submit();
return form.submit();
};
} else {
throw new Error("Include Naja.js or nette.ajax for datagrids to work!")
Expand Down

0 comments on commit a282cf7

Please sign in to comment.