Skip to content

Commit

Permalink
Merge pull request #79 from nysenate/feature/aten-nys-52--fix-paginat…
Browse files Browse the repository at this point in the history
…ion-issue-on-newsroom-views

Aten NYS 52: Fix pagination issue on newsroom views
  • Loading branch information
kzalewski authored Dec 19, 2023
2 parents b5c6f49 + f170edb commit a9bc002
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 9 deletions.
10 changes: 6 additions & 4 deletions config/sync/views.view.newsroom.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ dependencies:
- node
- options
- user
- views_infinite_scroll
id: newsroom
label: Newsroom
module: views
Expand Down Expand Up @@ -396,7 +397,7 @@ display:
separator: ', '
field_api_classes: false
pager:
type: full
type: infinite_scroll
options:
offset: null
items_per_page: 5
Expand All @@ -405,8 +406,6 @@ display:
tags:
next: 'Next ›'
previous: '‹ Previous'
first: '« First'
last: 'Last »'
expose:
items_per_page: false
items_per_page_label: 'Items per page'
Expand All @@ -415,7 +414,10 @@ display:
items_per_page_options_all_label: '- All -'
offset: false
offset_label: Offset
quantity: 9
views_infinite_scroll:
button_text: 'Load More'
automatically_load_content: false
initially_load_all_pages: false
exposed_form:
type: basic
options:
Expand Down
10 changes: 6 additions & 4 deletions config/sync/views.view.senator_microsite_content.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ dependencies:
- options
- taxonomy
- user
- views_infinite_scroll
id: senator_microsite_content
label: 'Microsite Content'
module: views
Expand Down Expand Up @@ -3539,7 +3540,7 @@ display:
separator: ', '
field_api_classes: false
pager:
type: full
type: infinite_scroll
options:
offset: 0
items_per_page: 5
Expand All @@ -3548,8 +3549,6 @@ display:
tags:
next: 'Next ›'
previous: '‹ Previous'
first: '« First'
last: 'Last »'
expose:
items_per_page: false
items_per_page_label: 'Items per page'
Expand All @@ -3558,7 +3557,10 @@ display:
items_per_page_options_all_label: '- All -'
offset: false
offset_label: Offset
quantity: 9
views_infinite_scroll:
button_text: 'Load More'
automatically_load_content: false
initially_load_all_pages: false
exposed_form:
type: bef
options:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@
}

tabInput.each(function () {
if ($(this).is(':checked')) {
// Use .attr('checked') instead of .is(:checked), because
// tabInput.on('click') logic below operates on checked attribute.
if ($(this).attr('checked')) {
$(this).parent().addClass('active');
}
});
Expand Down

0 comments on commit a9bc002

Please sign in to comment.