Skip to content

configuration: replace $.ajax with lorisFetch#10495

Open
Montekkundan wants to merge 6 commits into
aces:mainfrom
Montekkundan:montek/restore-10336-configuration-fetch
Open

configuration: replace $.ajax with lorisFetch#10495
Montekkundan wants to merge 6 commits into
aces:mainfrom
Montekkundan:montek/restore-10336-configuration-fetch

Conversation

@Montekkundan
Copy link
Copy Markdown
Contributor

Replaces closed PR #10336, which could not be reopened because the original fork was deleted.

Previous discussion/review:
#10336

@github-actions github-actions Bot added Language: Javascript PR or issue that update Javascript code Module: configuration PR or issue related to configuration module labels May 12, 2026
@Montekkundan Montekkundan added the State: Blocked PR or issue awaiting an external event such as the merge or another PR to proceed label May 12, 2026
…wrapper' into montek/restore-10336-configuration-fetch
@skarya22 skarya22 requested a review from HenriRabalais May 29, 2026 16:08
@skarya22
Copy link
Copy Markdown
Contributor

Blocked by: #10492

@skarya22 skarya22 removed the State: Blocked PR or issue awaiting an external event such as the merge or another PR to proceed label Jun 2, 2026

);
if (!response.ok) {
throw {error: (data && data.error) ? data.error : text};
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a reason a throw new Error(...) isn't done here?

/**
* Display the login modal when a request returns a 401 response.
*/
function handleUnauthorized() {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

duplication between handleUnauthorized in loris-scripts.js and lorisFetch is intentional/unavoidable?

@skarya22 skarya22 added the State: Needs work PR awaiting additional work by the author to proceed label Jun 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Language: Javascript PR or issue that update Javascript code Module: configuration PR or issue related to configuration module State: Needs work PR awaiting additional work by the author to proceed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants