Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed issue #3412 Go back button #3413

Merged
merged 2 commits into from
Oct 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion assets/html/checkout.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

<div class="screen flex-center">
<div class="goback">
<a href="index.html"><h3>Go Back</h3></a>
<a href="/SwapReads/index.html"><h3>Go Back</h3></a>
</div>
<form class="popup flex p-lg">
<div class="close-btn pointer flex-center p-sm">
Expand Down
7 changes: 4 additions & 3 deletions assets/html/donate.html
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
<body>
<div class="form-container">
<h1>Donate Books to Library</h1>
<form id="donationForm">
<form id="donationForm" onsubmit="submitForm(event)">
<div class="form-group">
<label for="name">Name:</label>
<input type="text" id="name" name="name" required />
Expand All @@ -124,7 +124,7 @@ <h1>Donate Books to Library</h1>
</select>
</div>
<div class="form-group">
<button type="button" onclick="submitForm()">Submit</button>
<button type="submit" onclick="submitForm()">Submit</button>
</div>
</form>
<div id="thankYouMessage" class="thank-you-message">
Expand All @@ -134,7 +134,8 @@ <h1>Donate Books to Library</h1>
</div>

<script>
function submitForm() {
function submitForm(event) {
event.preventDefault();
// Hide the form
document.getElementById("donationForm").style.display = "none";

Expand Down
7 changes: 4 additions & 3 deletions assets/html/ngo.html
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
<body>
<div class="form-container">
<h1>Donate Books to Organization</h1>
<form id="donationForm">
<form id="donationForm" onsubmit="submitForm(event)">
<div class="form-group">
<label for="name">Name of Donor:</label>
<input type="text" id="name" name="name" required />
Expand Down Expand Up @@ -120,7 +120,7 @@ <h1>Donate Books to Organization</h1>
</select>
</div>
<div class="form-group">
<button type="button" onclick="submitForm()">Submit</button>
<button type="submit" onclick="submitForm()">Submit</button>
</div>
</form>
<div id="thankYouMessage" class="thank-you-message">
Expand All @@ -130,7 +130,8 @@ <h1>Donate Books to Organization</h1>
</div>

<script>
function submitForm() {
function submitForm(event) {
event.preventdefault();
// Hide the form
document.getElementById("donationForm").style.display = "none";

Expand Down
8 changes: 5 additions & 3 deletions assets/html/school.html
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
<body>
<div class="form-container">
<h1>Donate Books to School</h1>
<form id="donationForm">
<form id="donationForm" onsubmit="submitForm(event)">
<div class="form-group">
<label for="name">Name of Donor:</label>
<input type="text" id="name" name="name" required />
Expand All @@ -120,7 +120,7 @@ <h1>Donate Books to School</h1>
</select>
</div>
<div class="form-group">
<button type="button" onclick="submitForm()">Submit</button>
<button type="submit">Submit</button>
</div>
</form>
<div id="thankYouMessage" class="thank-you-message">
Expand All @@ -130,7 +130,9 @@ <h1>Donate Books to School</h1>
</div>

<script>
function submitForm() {
function submitForm(event) {
event.preventDefault(); // Prevent the default form submission

// Hide the form
document.getElementById("donationForm").style.display = "none";

Expand Down
Loading