mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -04:00
use timeLimit()
This commit is contained in:
parent
a56cede50c
commit
84fc02901d
1 changed files with 1 additions and 4 deletions
|
@ -463,10 +463,7 @@ function showAnswer(txt) {
|
||||||
self._remaining(), _("Show Answer"))
|
self._remaining(), _("Show Answer"))
|
||||||
# wrap it in a table so it has the same top margin as the ease buttons
|
# 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
|
middle = "<table cellpadding=0><tr><td class=stat2 align=center>%s</td></tr></table>" % middle
|
||||||
if not self.card.deckConf().get('timer'):
|
maxTime = self.card.timeLimit()
|
||||||
maxTime = 0
|
|
||||||
else:
|
|
||||||
maxTime = self.card.deckConf()['maxTaken']
|
|
||||||
self.bottom.web.eval("showQuestion(%s,%d);" % (
|
self.bottom.web.eval("showQuestion(%s,%d);" % (
|
||||||
simplejson.dumps(middle), maxTime))
|
simplejson.dumps(middle), maxTime))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue