From 64c7d405f5dca33d1b299cb11884a345e6cc651b Mon Sep 17 00:00:00 2001 From: Henrik Giesel Date: Tue, 13 Apr 2021 19:54:45 +0200 Subject: [PATCH] Remove jquery from browser.py --- qt/aqt/browser/browser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qt/aqt/browser/browser.py b/qt/aqt/browser/browser.py index 7dc2db756..ac2cdeb5d 100644 --- a/qt/aqt/browser/browser.py +++ b/qt/aqt/browser/browser.py @@ -607,7 +607,7 @@ where id in %s""" def _on_preview_closed(self) -> None: if self.editor.web: - self.editor.web.eval("$('#previewButton').removeClass('highlighted')") + self.editor.web.eval("document.getElementById('previewButton').classList.remove('highlighted')") self._previewer = None # Card deletion