feat: added wildcard support in webform_include_js hook (#33751)
This commit is contained in:
parent
c6032ebdb9
commit
6907856ddc
1 changed files with 3 additions and 1 deletions
|
|
@ -464,7 +464,9 @@ def get_context(context):
|
|||
if os.path.exists(js_path):
|
||||
script = frappe.render_template(open(js_path).read(), context)
|
||||
|
||||
for path in get_code_files_via_hooks("webform_include_js", context.doc_type):
|
||||
for path in get_code_files_via_hooks(
|
||||
"webform_include_js", context.doc_type
|
||||
) + get_code_files_via_hooks("webform_include_js", "*"):
|
||||
custom_js = frappe.render_template(open(path).read(), context)
|
||||
script = "\n\n".join([script, custom_js])
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue