make sure empty estimates don't reposition buttons

This commit is contained in:
Damien Elmes 2012-05-25 11:55:02 +09:00
parent 69da9b1e32
commit f225bec50b

View file

@ -608,7 +608,7 @@ function showAnswer(txt) {
def _buttonTime(self, i):
if not self.mw.col.conf['estTimes']:
return "<div class=spacer></div>"
txt = self.mw.col.sched.nextIvlStr(self.card, i, True)
txt = self.mw.col.sched.nextIvlStr(self.card, i, True) or "&nbsp;"
return '<span class=nobold>%s</span><br>' % txt
# Leeches