Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Load more button #379

Open
wants to merge 21 commits into
base: trunk
Choose a base branch
from
Open

Load more button #379

wants to merge 21 commits into from

Conversation

trymebytes
Copy link
Collaborator

@trymebytes trymebytes commented Nov 22, 2024

Fixes #378

  • Modify existing list endpoint to fetch next list of events
  • Call endpoint via AJAX when button is clicked

@trymebytes trymebytes marked this pull request as ready for review November 29, 2024 14:16
function ( e ) {
let eventType = $( this ).data('event-type');
let nextPage = $( this ).data('event-next-page');
const url = `http://translate.test/events/?${encodeURIComponent(eventType)}=${encodeURIComponent(nextPage)}&format=html`;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
const url = `http://translate.test/events/?${encodeURIComponent(eventType)}=${encodeURIComponent(nextPage)}&format=html`;
const url = `https://translate.wordpress.org/events/?${encodeURIComponent(eventType)}=${encodeURIComponent(nextPage)}&format=html`;

@trymebytes trymebytes requested a review from amieiro December 12, 2024 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Load more button
2 participants