Skip to content

Commit

Permalink
Loading GIF added into a form.
Browse files Browse the repository at this point in the history
Experimental! Gonna see how I feel about this.
  • Loading branch information
clj13001 committed Apr 24, 2017
1 parent 4fe48e2 commit 8c76ed6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Binary file added WebContent/html/imgs/loader.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 3 additions & 1 deletion WebContent/html/webpages/shoppingCart.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ pageEncoding="ISO-8859-1"%>
<label for="urgent">This is a permanent loan</label>
<input type = "checkbox" name = "checkboxes" value = "perm">
</div>
<button type="submit" class="btn btn-primary" id = "Submit" name="Submit">Submit</button>
<button type="submit" class="btn btn-primary" id = "Submit" name="Submit">Submit</button><img id = "load" src = "../imgs/loader.gif" style = "visibility: hidden; margin-left: 15px;">
</form>
</div>

Expand Down Expand Up @@ -453,6 +453,8 @@ function forceUpdateLocationMetadata() {
// This is called just before order form is submitted. In order for any database activity to occur,
// we must first append the employees ID as well as the ids of whatever devices are selected.
document.getElementById("load").style.visibility = 'visible';
// First, employee id
userID=getUserID();
document.orderForm.userID.value=userID;
Expand Down

0 comments on commit 8c76ed6

Please sign in to comment.