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

fix: Optimized the functionality : submit and navigation #834

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
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
3 changes: 3 additions & 0 deletions feedback.html
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,11 @@ <h1 class="feedback-heading">Rate Our Service</h1><hr>
<button class="button" onclick="submitFeedback()">Submit</button>
<div><button class="button button2" onclick="location.href = 'index.html';">Return To Home Page</button></div>
</div>

</div>

</div>

</div>

<!-- SweetAlert2 -->
Expand Down
5 changes: 5 additions & 0 deletions feedback.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,12 @@ window.submitFeedback = function submitFeedback() {
// Clear the feedback input box after the user acknowledges the success modal
if (result.isConfirmed || result.isDismissed) {
feedbackInput.value = "";

// Redirect to the home page
window.location.href = 'index.html';

resetStars();

}
});
};
Expand Down
Loading