Skip to content

Conversation

@mpreyskurantov
Copy link
Contributor

Draft:

  • jQuery: 1 BeforeSend + 1 jQuery.ajax / req

@mpreyskurantov mpreyskurantov self-assigned this Dec 26, 2025
@mpreyskurantov mpreyskurantov added WIP Work in progress 25_2 labels Dec 26, 2025
* Refactor anti-forgery token handling in BatchUpdateRequest demo

- Fetch fresh CSRF token for each load and save operation
- Use jQuery $.ajax() consistently instead of mixing with fetch API
- Move error handling into helper functions (getAntiForgeryToken, sendBatchRequest)
- Improve error messages with descriptive context
- Use promise chaining with .then() for better readability
- Remove stale global csrf variable

* Refactor anti-forgery token handling to use caching
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

25_2 WIP Work in progress

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants