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:
0
.github/workflows/ci.yml
vendored
Normal file → Executable file
0
.github/workflows/ci.yml
vendored
Normal file → Executable file
0
.github/workflows/deploy.yml
vendored
Normal file → Executable file
0
.github/workflows/deploy.yml
vendored
Normal file → Executable file
0
.gitignore
vendored
Normal file → Executable file
0
.gitignore
vendored
Normal file → Executable file
0
.phpcs.xml.dist
Normal file → Executable file
0
.phpcs.xml.dist
Normal file → Executable file
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 () {
|
||||
|
||||
0
composer.json
Normal file → Executable file
0
composer.json
Normal file → Executable file
0
includes/class-psa-admin.php
Normal file → Executable file
0
includes/class-psa-admin.php
Normal file → Executable file
0
includes/class-psa-ai-generator.php
Normal file → Executable file
0
includes/class-psa-ai-generator.php
Normal file → Executable file
0
includes/class-psa-config.php
Normal file → Executable file
0
includes/class-psa-config.php
Normal file → Executable file
0
includes/class-psa-error.php
Normal file → Executable file
0
includes/class-psa-error.php
Normal file → Executable file
0
includes/class-psa-post-type.php
Normal file → Executable file
0
includes/class-psa-post-type.php
Normal file → Executable file
0
includes/class-psa-pubchem.php
Normal file → Executable file
0
includes/class-psa-pubchem.php
Normal file → Executable file
0
includes/class-psa-search.php
Normal file → Executable file
0
includes/class-psa-search.php
Normal file → Executable file
0
includes/class-psa-template.php
Normal file → Executable file
0
includes/class-psa-template.php
Normal file → Executable file
0
peptide-search-ai.php
Normal file → Executable file
0
peptide-search-ai.php
Normal file → Executable file
0
readme.txt
Normal file → Executable file
0
readme.txt
Normal file → Executable file
0
uninstall.php
Normal file → Executable file
0
uninstall.php
Normal file → Executable file
Reference in New Issue
Block a user