Skip to content

Commit

Permalink
Issue #2526 - removed <button> Filtered and added an onChange eventLi…
Browse files Browse the repository at this point in the history
…stener on elements Form
  • Loading branch information
magsout committed Jun 29, 2018
1 parent 212b873 commit 97d0563
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions webcompat/static/js/lib/dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,9 @@ const issuesNumber = {
/* init list with filters by default */
setView(localStorage.getItem("DashboardTriageView"));
filteringList(true, issuesNumber);
/* Added an event onSubmit form */
document.getElementById("js-Filters").addEventListener("submit", e => {

/* Added an event onChane form elements */
document.getElementById("js-Filters").addEventListener("change", e => {
e.preventDefault();
filteringList(false, issuesNumber);
});

0 comments on commit 97d0563

Please sign in to comment.