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:
2
assets/css/peptide-search.css
Normal file → Executable file
2
assets/css/peptide-search.css
Normal file → Executable 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
4
assets/js/peptide-search.js
Normal file → Executable 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 () {
|
||||
|
||||
Reference in New Issue
Block a user