mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-15 09:46:06 +01:00
Fixed folder auto-naming in Add Module (fixes #1937)
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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')}"]`;
|
||||||
|
|||||||
2
themes/grav/js/admin.min.js
vendored
2
themes/grav/js/admin.min.js
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user