use shouldShowTimer() to fix answer time being uncounted

This commit is contained in:
Damien Elmes 2012-03-24 19:56:28 +09:00
parent 96ddf9c0cc
commit 487550ecb0

View file

@ -476,7 +476,10 @@ function showAnswer(txt) {
self._remaining(), _("Show Answer"))
# wrap it in a table so it has the same top margin as the ease buttons
middle = "<table cellpadding=0><tr><td class=stat2 align=center>%s</td></tr></table>" % middle
maxTime = self.card.timeLimit() / 1000
if self.card.shouldShowTimer():
maxTime = self.card.timeLimit() / 1000
else:
maxTime = 0
self.bottom.web.eval("showQuestion(%s,%d);" % (
simplejson.dumps(middle), maxTime))