Skip to content

Conversation

@azul
Copy link
Contributor

@azul azul commented Jan 10, 2022

publicpage.js is loaded very early and cannot rely on jquery being loaded already.

Move the use of $ into the DomContentLoaded handler.

publicpage.js is loaded very early and cannot rely on jquery being loaded already.

Move the use of `$` into the `DomContentLoaded` handler.

Signed-off-by: Azul <[email protected]>
@azul azul force-pushed the fix/missing-jquery branch from 9a67578 to 94554c4 Compare January 10, 2022 13:55
@azul
Copy link
Contributor Author

azul commented Jan 10, 2022

Noticed this because cypress tests in text started failing complaining:

  > $ is not defined
https://on.cypress.io/uncaught-exception-from-application
      at http://localhost:8081/core/js/public/publicpage.js?v=16d6118e-0:36:1

This seems to be the easiest fix for now. Could also rewrite this without relying on jquery - but i guess that's for another time.

@azul azul requested review from artonge and skjnldsv January 10, 2022 13:57
@artonge
Copy link
Contributor

artonge commented Jan 10, 2022

/rebase

@skjnldsv skjnldsv merged commit 5faba45 into master Jan 10, 2022
@skjnldsv skjnldsv deleted the fix/missing-jquery branch January 10, 2022 19:03
@solracsf
Copy link
Member

Backport?

@artonge
Copy link
Contributor

artonge commented Jan 11, 2022

/backport to stable23

@artonge
Copy link
Contributor

artonge commented Jan 11, 2022

/backport to stable22

@artonge
Copy link
Contributor

artonge commented Jan 11, 2022

/backport to stable21

@backportbot-nextcloud
Copy link

The backport to stable21 failed. Please do this backport manually.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants