mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2026-05-07 06:35:36 +02:00
Fixed check for parents within modals
This commit is contained in:
@@ -167,8 +167,11 @@ export const b64_decode_unicode = (str) => {
|
||||
};
|
||||
|
||||
const getExtraFormData = (container) => {
|
||||
let form = container.closest('form');
|
||||
if (container.closest('[data-remodal-id]').length) {
|
||||
form = $('form#blueprints');
|
||||
}
|
||||
const data = {};
|
||||
const form = container.closest('form');
|
||||
const unique_id = form.find('[name="__unique_form_id__"]');
|
||||
|
||||
data['__form-name__'] = form.find('[name="__form-name__"]').val();
|
||||
|
||||
4
themes/grav/js/admin.min.js
vendored
4
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