Skip to content

Commit

Permalink
Fixed folder auto-naming in Add Module (fixes #1937)
Browse files Browse the repository at this point in the history
  • Loading branch information
w00fz committed Nov 17, 2020
1 parent 9f4e480 commit 45e48b9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
* Stop propagation of ACL add button in ACL picker [flex-objects#83](https://github.com/trilbymedia/grav-plugin-flex-objects/issues/83)
* Fixed missing special groups `authors` and `defaults` for pages
* Fixed Page Move action and selection highlight in Parents selector modal [flex-objects#80](https://github.com/trilbymedia/grav-plugin-flex-objects/issues/80)
* Fixed folder auto-naming in Add Module [#1937](https://github.com/getgrav/grav-plugin-admin/issues/1937)

# v1.10.0-rc.17
## 10/07/2020
Expand Down
4 changes: 2 additions & 2 deletions themes/grav/app/pages/page/add.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import request from '../../utils/request';
import { config } from 'grav-config';

let custom = false;
let folder = $('[data-remodal-id="modal"] input[name="data[folder]"], [data-remodal-id="modular"] input[name="data[folder]"]');
let title = $('[data-remodal-id="modal"] input[name="data[title]"], [data-remodal-id="modular"] input[name="data[title]"]');
let folder = $('[data-remodal-id="modal"] input[name="data[folder]"], [data-remodal-id="module"] input[name="data[folder]"]');
let title = $('[data-remodal-id="modal"] input[name="data[title]"], [data-remodal-id="module"] input[name="data[title]"]');
let getFields = (type, target) => {
target = $(target);
let query = `[data-remodal-id="${target.closest('[data-remodal-id]').data('remodal-id')}"]`;
Expand Down
Loading

0 comments on commit 45e48b9

Please sign in to comment.