Int_Prog/лаб3/lab3/public/scripts/helpers/resetForm.js

12 lines
241 B
JavaScript
Raw Normal View History

2024-01-18 23:29:33 +04:00
import { form } from "../variables.js";
export function resetForm() {
console.log(form.root);
form.root.reset();
const previewImage = form.fieldPhotoPreview;
if (previewImage) {
previewImage.src = '/img/placeholder.png';
}
}