Skip to content

Commit

Permalink
please the linter, #448
Browse files Browse the repository at this point in the history
  • Loading branch information
Hallvord R. M. Steen committed Oct 29, 2015
1 parent 7237c2a commit 368c84e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion webcompat/static/js/lib/labels.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,10 @@ issues.LabelEditorView = Backbone.View.extend({
// If the change event comes from a "status"-type label,
// enumerate all checked "status"-type labels and uncheck
// the others.
var checked;
if($(evt.target).data('remotename').match(/^status/) &&
evt.target.checked) {
var checked = $('input[type=checkbox][data-remotename^="status"]:checked');
checked = $('input[type=checkbox][data-remotename^="status"]:checked');
_.each(checked, function(item) {
if(item !== evt.target) {
item.checked = false;
Expand Down

0 comments on commit 368c84e

Please sign in to comment.