Skip to content

Commit

Permalink
Fixed issue with forms causing creation of new pages not to work (#698,
Browse files Browse the repository at this point in the history
  • Loading branch information
w00fz committed Jul 15, 2016
1 parent a6ea1ec commit 0fac7a3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# v1.1.1
## 07/XX/2016

1. [](#bugfix)
* Fixed issue with forms causing creation of new pages not to work [#698](https://github.com/getgrav/grav-plugin-admin/issues/698) and [getgrav/grav#934](https://github.com/getgrav/grav/issues/934)

# v1.1.0
## 07/14/2016

Expand Down
8 changes: 4 additions & 4 deletions themes/grav/app/forms/form.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,13 +100,13 @@ export default class Form {
_submitUncheckedFields() {
this.form.each((index, form) => {
form = $(form);
form.on('submit', () => {
form.on('submit', (e) => {
// do not attempt to submit forms within remodal
if (form.closest('.remodal').length) {
/* if (form.closest('.remodal').length) {
return false;
}
}*/

let unchecked = this.form.find('input[type="checkbox"]:not(:checked):not(:disabled)');
let unchecked = form.find('input[type="checkbox"]:not(:checked):not(:disabled)');
if (!unchecked.length) { return true; }

unchecked.each((index, element) => {
Expand Down
Loading

0 comments on commit 0fac7a3

Please sign in to comment.