Skip to content

Commit

Permalink
MDL-57139 myoverview: fix paging button edge case
Browse files Browse the repository at this point in the history
Previously the 'view more' button was disabled when should be enabled
  • Loading branch information
danpoltawski committed Jun 7, 2017
1 parent 50c277a commit afaa33d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion blocks/myoverview/amd/build/event_list.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion blocks/myoverview/amd/src/event_list.js
Expand Up @@ -361,7 +361,7 @@ define(['jquery', 'core/notification', 'core/templates',
// Remember the last id we've seen.
root.attr('data-last-id', calendarEvents[calendarEvents.length - 1].id);

if (calendarEvents.length <= limit) {
if (calendarEvents.length < limit) {
// No more events to load, disable loading button.
setLoadedAll(root);
}
Expand Down

0 comments on commit afaa33d

Please sign in to comment.