From 58395e360b186999525906f883ec2da311f0129c Mon Sep 17 00:00:00 2001 From: Shiloh Olotu Date: Thu, 11 Apr 2024 12:15:17 -0500 Subject: [PATCH] Fix stupid bug --- static/scripts/application.js | 2 ++ templates/login.html | 19 ------------------- templates/navbar.html | 2 -- 3 files changed, 2 insertions(+), 21 deletions(-) diff --git a/static/scripts/application.js b/static/scripts/application.js index 82f66a2..99b6677 100644 --- a/static/scripts/application.js +++ b/static/scripts/application.js @@ -22,12 +22,14 @@ function submitApplication(){ if(filled){ filled = false; unfilledElement = $(this).attr("id"); + console.log(unfilledElement); } } }) if (!filled){ alert("Please fill all fields!"); // scroll to first unfilled required field + console.log(unfilledElement) window.scrollTo(0, document.getElementById(unfilledElement).offsetTop - 200); return; } diff --git a/templates/login.html b/templates/login.html index b639006..e69de29 100644 --- a/templates/login.html +++ b/templates/login.html @@ -1,19 +0,0 @@ - - - - - - diff --git a/templates/navbar.html b/templates/navbar.html index 0607876..a51f8fc 100644 --- a/templates/navbar.html +++ b/templates/navbar.html @@ -32,5 +32,3 @@ Sources - -{% include 'login.html' %} \ No newline at end of file