0.0.31 forms
This commit is contained in:
@@ -117,4 +117,15 @@ function dataToFormData(data) {
|
||||
formData.append(key, data[key]);
|
||||
}
|
||||
return formData;
|
||||
}
|
||||
|
||||
function selectInputWContainer (el, callback) {
|
||||
if (!el) return;
|
||||
let $field = el.closest('.field_container');
|
||||
if (!$field) return;
|
||||
|
||||
let $input = $field.querySelector('input');
|
||||
$input.focus()
|
||||
|
||||
if (callback) callback(el);
|
||||
}
|
||||
Reference in New Issue
Block a user