Skip to content

Commit

Permalink
Show the lowest verdict when the score is below zero
Browse files Browse the repository at this point in the history
  • Loading branch information
ablanco committed Jul 5, 2014
1 parent 6bf68d0 commit c22f57a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## 1.2.0dev

- Listen also to the `change` and `onpaste` events, not only to the `onkeyup`.
- Show the lowest verdict when the score is below zero.

## 1.1.5

Expand Down
2 changes: 1 addition & 1 deletion src/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ var ui = {};
if (score <= 0) {
cssClass = 0;
level = -1;
verdictText = "";
verdictText = options.ui.verdicts[0];
} else if (score < options.ui.scores[0]) {
cssClass = 0;
level = 0;
Expand Down

0 comments on commit c22f57a

Please sign in to comment.