fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix prawdafalsz - thanks a lot jquery
[redakcja.git]
/
redakcja
/
static
/
edumed
/
js
/
edumed.js
diff --git
a/redakcja/static/edumed/js/edumed.js
b/redakcja/static/edumed/js/edumed.js
index
e3878be
..
1952c63
100644
(file)
--- a/
redakcja/static/edumed/js/edumed.js
+++ b/
redakcja/static/edumed/js/edumed.js
@@
-604,12
+604,12
@@
PrawdaFalsz.prototype.show_solutions = function() {
var qp, _i, _len, _ref, _results;
PrawdaFalsz.prototype.show_solutions = function() {
var qp, _i, _len, _ref, _results;
- reset();
+
this.
reset();
_ref = $(".question-piece", this.element);
_results = [];
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
qp = _ref[_i];
_ref = $(".question-piece", this.element);
_results = [];
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
qp = _ref[_i];
- if ($(qp).data('solution') ===
'true'
) {
+ if ($(qp).data('solution') ===
true
) {
_results.push($(".true", qp).click());
} else {
_results.push($(".false", qp).click());
_results.push($(".true", qp).click());
} else {
_results.push($(".false", qp).click());