Making the checkboxes work fine on IE. onchange doesnt work very well with checkboxes there. The target is not set too.
Original author: Fabio M. Costa <fabiomcosta@gmail.com>
This commit is contained in:
parent
8ecfd26325
commit
377703745f
@ -70,16 +70,16 @@ jasmine.TrivialReporter.prototype.reportRunnerStarting = function(runner) {
|
|||||||
this.startedAt = new Date();
|
this.startedAt = new Date();
|
||||||
|
|
||||||
var self = this;
|
var self = this;
|
||||||
showPassed.onchange = function(evt) {
|
showPassed.onclick = function(evt) {
|
||||||
if (evt.target.checked) {
|
if (showPassed.checked) {
|
||||||
self.outerDiv.className += ' show-passed';
|
self.outerDiv.className += ' show-passed';
|
||||||
} else {
|
} else {
|
||||||
self.outerDiv.className = self.outerDiv.className.replace(/ show-passed/, '');
|
self.outerDiv.className = self.outerDiv.className.replace(/ show-passed/, '');
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
showSkipped.onchange = function(evt) {
|
showSkipped.onclick = function(evt) {
|
||||||
if (evt.target.checked) {
|
if (showSkipped.checked) {
|
||||||
self.outerDiv.className += ' show-skipped';
|
self.outerDiv.className += ' show-skipped';
|
||||||
} else {
|
} else {
|
||||||
self.outerDiv.className = self.outerDiv.className.replace(/ show-skipped/, '');
|
self.outerDiv.className = self.outerDiv.className.replace(/ show-skipped/, '');
|
||||||
|
Loading…
Reference in New Issue
Block a user