From 39a2ddac5187a89a24eefbd6b3ece177b04999e7 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Thu, 7 Jul 2016 11:08:32 +1000 Subject: [PATCH] fix 'loading' message by removing old type answer code --- aqt/reviewer.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/aqt/reviewer.py b/aqt/reviewer.py index 169bd2884..e2d617aee 100644 --- a/aqt/reviewer.py +++ b/aqt/reviewer.py @@ -155,11 +155,6 @@ function _toggleStar (show) { } } -function _getTypedText () { - if (typeans) { - pycmd("typeans:"+typeans.value); - } -}; function _typeAnsPress() { if (window.event.keyCode === 13) { pycmd("ans"); @@ -307,7 +302,7 @@ The front of this card is empty. Please run Tools>Empty Cards.""") elif url == "more": self.showContextMenu() else: - openLink(url) + print("unrecognized anki link:", url) # CSS ########################################################################## @@ -379,8 +374,6 @@ Please run Tools>Empty Cards""") """ % (self.typeFont, self.typeSize), buf) def typeAnsAnswerFilter(self, buf): - # tell webview to call us back with the input content - self.web.eval("_getTypedText();") if not self.typeCorrect: return re.sub(self.typeAnsPat, "", buf) origSize = len(buf)