Skip to content

Commit ec354a9

Browse files
author
Mike Taylor
committed
Issue #372 - Uncomment pagination controls code; add page params.
1 parent 74b69d7 commit ec354a9

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

webcompat/static/js/lib/issue-list.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -175,11 +175,11 @@ issueList.SortingView = Backbone.View.extend({
175175
events: {},
176176
initialize: function() {
177177
this.paginationModel = new Backbone.Model({
178-
dropdownTitle: "Show 25",
178+
dropdownTitle: "Show 50",
179179
dropdownOptions: [
180-
{title: "Show 25", params: ""},
181-
{title: "Show 50", params: ""},
182-
{title: "Show 100", params: ""}
180+
{title: "Show 25", params: "per_page=25"},
181+
{title: "Show 50", params: "per_page=50"},
182+
{title: "Show 100", params: "per_page=100"}
183183
]
184184
});
185185

@@ -196,19 +196,19 @@ issueList.SortingView = Backbone.View.extend({
196196
this.initSubViews();
197197
},
198198
initSubViews: function() {
199-
/* Commenting out for now, see Issues #312, #266
200199
this.paginationDropdown = new issueList.DropdownView({
201200
model: this.paginationModel
202201
});
202+
/* Commenting out for now, see Issues #312, #266
203203
this.sortDropdown = new issueList.DropdownView({
204204
model: this.sortModel
205205
}); */
206206
},
207207
template: _.template($('#issuelist-sorting-tmpl').html()),
208208
render: function() {
209209
this.$el.html(this.template());
210-
/* Commenting out for now, see Issues #312, #266
211210
this.paginationDropdown.setElement(this.$el.find('.js-dropdown-pagination')).render();
211+
/* Commenting out for now, see Issues #312, #266
212212
this.sortDropdown.setElement(this.$el.find('.js-dropdown-sort')).render(); */
213213
return this;
214214
}

0 commit comments

Comments
 (0)