Skip to content

Commit d4cbd9c

Browse files
author
Mike Taylor
committed
Issue #372 - Rename checkURLParams to loadIssues to be less confusing.
1 parent dbb32fc commit d4cbd9c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

+4-4
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ issueList.IssueView = Backbone.View.extend({
249249
initialize: function() {
250250
this.issues = new issueList.IssueCollection();
251251
// check to see if we should pre-filter results
252-
this.checkURLParams();
252+
this.loadIssues();
253253

254254
// set up event listeners.
255255
issueList.events.on('issues:update', _.bind(this.updateIssues, this));
@@ -258,9 +258,9 @@ issueList.IssueView = Backbone.View.extend({
258258
wcEvents.on('dropdown:change', _.bind(this.updateModelParams, this));
259259
},
260260
template: _.template($('#issuelist-issue-tmpl').html()),
261-
checkURLParams: function() {
262-
// Assumes a URI like: /?untriaged=1 and activates the untriaged filter,
263-
// for example.
261+
loadIssues: function() {
262+
// First checks URL params, e.g., /?untriaged=1 and activates the untriaged filter,
263+
// or loads default unsorted/unfiltered issues
264264
var category;
265265
var filterRegex = /\?(untriaged|needsdiagnosis|contactready|sitewait|closed)=1/;
266266
if (category = window.location.search.match(filterRegex)) {

0 commit comments

Comments
 (0)