From d41817cc72b775caaf1f8fbc5ba2a2069805a1d7 Mon Sep 17 00:00:00 2001 From: Henrik Giesel Date: Mon, 28 Aug 2023 23:07:53 +0200 Subject: [PATCH] fix: jquery inserted into template --- addon/card_type.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/addon/card_type.py b/addon/card_type.py index 07f3b13..4db9ed4 100644 --- a/addon/card_type.py +++ b/addon/card_type.py @@ -127,6 +127,7 @@ def field_exists(name): """ + jquery_js = "\n\n" common_back_js = "\n\n" dmak_js = "\n\n" raphael_js = "\n\n" @@ -135,11 +136,13 @@ def field_exists(name): # Set template html template["qfmt"] = ( + jquery_js + settings_html + "\n\n" + japanese_util_js + read_web_file_with_includes(f"front-{self.label}.html") ) template["afmt"] = ( + jquery_js + settings_html + "\n\n" + dmak_js + raphael_js +