Skip to content

Commit

Permalink
chore: Minor non-breaking changes
Browse files Browse the repository at this point in the history
  • Loading branch information
chidimo committed May 16, 2019
1 parent 7d99dbc commit 0f0c05a
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
[![Coverage Status](https://coveralls.io/repos/github/chidimo/Quick-Credit/badge.svg?branch=develop)](https://coveralls.io/github/chidimo/Quick-Credit?branch=develop)
[![Maintainability](https://api.codeclimate.com/v1/badges/38d7483bb05e2777f391/maintainability)](https://codeclimate.com/github/chidimo/Quick-Credit/maintainability)

## Website

[Quick Credit](https://chidimo.github.io/Quick-Credit/UI/index.html)

## Description

Quick Credit is an online lending platform that provides short term soft loans to individuals. This
Expand Down
14 changes: 14 additions & 0 deletions UI/js/authentication.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,20 @@ const signup_form = document.getElementById('signup_form');
const activate_signup = document.getElementById('activate_signup');
const activate_signin = document.getElementById('activate_signin');

const sign_in_button = document.getElementById('sign_in_button');
const sign_up_button = document.getElementById('sign_up_button');

// temporarily redirect the sign up and sign in pages to dashboard
sign_in_button.addEventListener('click', e => {
e.preventDefault();
window.location = './dashboard.html';
});

sign_up_button.addEventListener('click', e => {
e.preventDefault();
window.location = './profile.edit.html';
});

activate_signin.addEventListener('click', e => {
e.preventDefault();
signup_form.classList.add('hide_form');
Expand Down
4 changes: 2 additions & 2 deletions UI/js/loan.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const reject_loan_application = document.getElementById(
approve_loan_application.addEventListener('click', e => {
e.preventDefault();
const cont = prompt(
'Please confirm if you want to approve this loan?',
'Confirm loan approval',
'Click okay to approve this loan request');

if (cont !== null) {
Expand All @@ -22,7 +22,7 @@ approve_loan_application.addEventListener('click', e => {
reject_loan_application.addEventListener('click', e => {
e.preventDefault();
const cont = prompt(
'Please confirm if you want to reject this loan?',
'Confirm loan rejection',
'Click okay to reject this loan request');

if (cont !== null) {
Expand Down

0 comments on commit 0f0c05a

Please sign in to comment.