You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Replace jQuery $.ajax() with native fetch API
- Replaced all $.ajax() calls with fetch() across frontend and templates
- Replaced $.ajaxSetup with direct CSRF token handling in fetch requests
- Replaced $.post() calls with fetch() for consistency
- Used URLSearchParams for form data encoding
- Maintained all existing error handling and success callbacks
- Added proper timeout handling using AbortController where needed
Files modified:
- frontend/src/microscope-form.js
- frontend/src/my-litemol.js
- frontend/src/js/project.js (15+ replacements)
- frontend/src/js/favit.js
- frontend/src/js/scope_report.js
- packages/blast/src/App.jsx
- backend/proteins/templates/proteins/spectrum_form.html
All changes compile successfully and maintain backward compatibility.
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* add back legacy headers
* fix ajax and convert get/post
* update test to allow non-AJAX requests for similar_spectrum_owners endpoint
* Update frontend/src/fret.js
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* remove legacy AJAX header from downloadPDBMeta function
* remove old sentry code
---------
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
0 commit comments