Fixed check for parents within modals

This commit is contained in:
Djamil Legato
2019-08-23 12:27:43 -07:00
parent 74236c6da5
commit 4600eb08af
2 changed files with 6 additions and 3 deletions

View File

@@ -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();

File diff suppressed because one or more lines are too long