fix prettier linting

Signed-off-by: Arthur Lu <learthurgo@gmail.com>
This commit is contained in:
Arthur Lu 2022-12-05 22:20:17 +00:00
parent 2640b10a2d
commit f48cc18b38
2 changed files with 3 additions and 3 deletions

View File

@ -137,7 +137,7 @@
</fieldset>
<button type="submit" id="save-btn" value="Submit">Save</button>
<input type="button" value="Cancel" id="cancel-btn"/>
<input type="button" value="Cancel" id="cancel-btn" />
</form>
</div>
</body>

View File

@ -208,9 +208,9 @@ function setupUpdate() {
//cancel button on update form hids form not making any changes
let cancelBtn = document.getElementById("cancel-btn");
cancelBtn.addEventListener("click", function(){
cancelBtn.addEventListener("click", function () {
updateDiv.classList.add("hidden");
})
});
//Take form data values as newData when submit
form.addEventListener("submit", function () {