mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-06 13:25:46 +01:00
Stop propagation of ACL add button in ACL picker (fixes flex-objects#83)
This commit is contained in:
@@ -7,6 +7,7 @@
|
|||||||
* Forward a `sid` to GPM when downloading a premium package
|
* Forward a `sid` to GPM when downloading a premium package
|
||||||
1. [](#bugfix)
|
1. [](#bugfix)
|
||||||
* Fixed Safari issue with new ACL picker field [#1955](https://github.com/getgrav/grav-plugin-admin/issues/1955)
|
* Fixed Safari issue with new ACL picker field [#1955](https://github.com/getgrav/grav-plugin-admin/issues/1955)
|
||||||
|
* 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
|
||||||
|
|
||||||
# v1.10.0-rc.17
|
# v1.10.0-rc.17
|
||||||
|
|||||||
@@ -45,6 +45,7 @@ body.on('input', 'input[data-crudp-key]', (event) => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
body.on('click', '[data-acl_picker] .remove-item', (event) => {
|
body.on('click', '[data-acl_picker] .remove-item', (event) => {
|
||||||
|
event.preventDefault();
|
||||||
const target = $(event.currentTarget);
|
const target = $(event.currentTarget);
|
||||||
const container = target.closest('.permissions-item');
|
const container = target.closest('.permissions-item');
|
||||||
const wrapper = target.closest('[data-acl_picker_id]');
|
const wrapper = target.closest('[data-acl_picker_id]');
|
||||||
@@ -59,6 +60,7 @@ body.on('click', '[data-acl_picker] .remove-item', (event) => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
body.on('click', '[data-acl_picker] .add-item', (event) => {
|
body.on('click', '[data-acl_picker] .add-item', (event) => {
|
||||||
|
event.preventDefault();
|
||||||
const target = $(event.currentTarget);
|
const target = $(event.currentTarget);
|
||||||
const item = target.closest('.permissions-item');
|
const item = target.closest('.permissions-item');
|
||||||
const wrapper = target.closest('[data-acl_picker_id]');
|
const wrapper = target.closest('[data-acl_picker_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