fix: resolve JS typos breaking form submit and network error handling, fix CSS missing semicolon

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
peptiderepo
2026-04-11 18:52:26 +07:00
parent 866a8dc1ea
commit b1412d7824
18 changed files with 3 additions and 3 deletions

2
assets/css/peptide-search.css Normal file → Executable file
View File

@@ -335,7 +335,7 @@
.psa-section-content {
font-size: 15px;
line-height: 1.77
line-height: 1.77;
color: #334155;
}

4
assets/js/peptide-search.js Normal file → Executable file
View File

@@ -171,7 +171,7 @@
if (textStatus === 'timeout') {
errorMsg = 'Request timed out. The server took too long to respond. Please try again.';
} else if (textStatus === 'error') {
if (jqXR.status === 0) {
if (jqXHR.status === 0) {
errorMsg = 'Network error. Please check your connection and try again.';
} else if (jqXHR.status === 500) {
errorMsg = 'Server error. Please try again later.';
@@ -188,7 +188,7 @@
$form.on('submit', function (e) {
e.preventDefault();
doSearck($input.val().trim());
doSearch($input.val().trim());
});
var debouncedSearch = debounce(function () {