Fixed folder auto-naming in Add Module (fixes #1937)

This commit is contained in:
Djamil Legato
2020-11-16 21:21:10 -08:00
parent 9f4e480b90
commit 45e48b9f87
3 changed files with 4 additions and 3 deletions

View File

@@ -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) * 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 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 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 # v1.10.0-rc.17
## 10/07/2020 ## 10/07/2020

View File

@@ -4,8 +4,8 @@ import request from '../../utils/request';
import { config } from 'grav-config'; import { config } from 'grav-config';
let custom = false; let custom = false;
let folder = $('[data-remodal-id="modal"] input[name="data[folder]"], [data-remodal-id="modular"] input[name="data[folder]"]'); 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="modular"] input[name="data[title]"]'); let title = $('[data-remodal-id="modal"] input[name="data[title]"], [data-remodal-id="module"] input[name="data[title]"]');
let getFields = (type, target) => { let getFields = (type, target) => {
target = $(target); target = $(target);
let query = `[data-remodal-id="${target.closest('[data-remodal-id]').data('remodal-id')}"]`; let query = `[data-remodal-id="${target.closest('[data-remodal-id]').data('remodal-id')}"]`;

File diff suppressed because one or more lines are too long