mirror of
https://github.com/cse110-fa22-group29/cse110-fa22-group29.git
synced 2024-12-25 16:39:09 +00:00
fix prettier linting
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
This commit is contained in:
parent
2640b10a2d
commit
f48cc18b38
@ -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>
|
||||
|
@ -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 () {
|
||||
|
Loading…
Reference in New Issue
Block a user