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> </fieldset>
<button type="submit" id="save-btn" value="Submit">Save</button> <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> </form>
</div> </div>
</body> </body>

View File

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