Skip to content

Commit

Permalink
fix: jquery inserted into template
Browse files Browse the repository at this point in the history
  • Loading branch information
hgiesel authored and MinmoTech committed Aug 29, 2023
1 parent 8ebeecc commit d41817c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions addon/card_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ def field_exists(name):
</script>
"""

jquery_js = "<script>" + read_web_file("jquery.js") + "</script>\n\n"
common_back_js = "<script>" + read_web_file("common_back.js") + "</script>\n\n"
dmak_js = "<script>" + read_web_file("dmak.js") + "</script>\n\n"
raphael_js = "<script>" + read_web_file("raphael.js") + "</script>\n\n"
Expand All @@ -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 +
Expand Down

0 comments on commit d41817c

Please sign in to comment.