use timeLimit()

This commit is contained in:
Damien Elmes 2012-03-12 14:04:48 +09:00
parent a56cede50c
commit 84fc02901d

View file

@ -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))