Permalink
Browse files

Making the checkboxes work fine on IE. onchange doesnt work very well…

… with checkboxes there. The target is not set too.
  • Loading branch information...
1 parent 2d10cc1 commit 8ecfd263252e71cd1f5ab43a052a0461842fc914 @fabiomcosta fabiomcosta committed with xian Jul 29, 2010
Showing with 4 additions and 4 deletions.
  1. +4 −4 lib/jasmine-html.js
View
8 lib/jasmine-html.js
@@ -70,16 +70,16 @@ jasmine.TrivialReporter.prototype.reportRunnerStarting = function(runner) {
this.startedAt = new Date();
var self = this;
- showPassed.onchange = function(evt) {
- if (evt.target.checked) {
+ showPassed.onclick = function(evt) {
+ if (showPassed.checked) {
self.outerDiv.className += ' show-passed';
} else {
self.outerDiv.className = self.outerDiv.className.replace(/ show-passed/, '');
}
};
- showSkipped.onchange = function(evt) {
- if (evt.target.checked) {
+ showSkipped.onclick = function(evt) {
+ if (showSkipped.checked) {
self.outerDiv.className += ' show-skipped';
} else {
self.outerDiv.className = self.outerDiv.className.replace(/ show-skipped/, '');

0 comments on commit 8ecfd26

Please sign in to comment.