Remvoe jQuery from deckbrowser.py

It's not quite clear why jQuery was necessary here?
This commit is contained in:
Henrik Giesel 2021-04-13 20:26:06 +02:00
parent 7dd12a523d
commit 67754494d2

View File

@ -168,7 +168,7 @@ class DeckBrowser:
gui_hooks.deck_browser_did_render(self)
def _scrollToOffset(self, offset: int) -> None:
self.web.eval("$(function() { window.scrollTo(0, %d, 'instant'); });" % offset)
self.web.eval("window.scrollTo(0, %d, 'instant');" % offset)
def _renderStats(self) -> str:
return '<div id="studiedToday"><span>{}</span></div>'.format(