diff --git a/src/privatim/layouts/layout.py b/src/privatim/layouts/layout.py index 81b3cf1..f9a1a7a 100644 --- a/src/privatim/layouts/layout.py +++ b/src/privatim/layouts/layout.py @@ -4,7 +4,8 @@ from pyramid.decorator import reify from pyramid.renderers import get_renderer from privatim.static import (bootstrap_css, bootstrap_js, tom_select_css, - comments_css, profile_css, sortable_custom) + comments_css, profile_css, sortable_custom, + custom_js) from pytz import timezone import re from datetime import date, datetime @@ -41,6 +42,7 @@ def __init__(self, context: Any, request: 'IRequest') -> None: tom_select_css.need() comments_css.need() sortable_custom.need() + custom_js.need() profile_css.need() def show_steps(self) -> bool: diff --git a/src/privatim/static/__init__.py b/src/privatim/static/__init__.py index 15f61b1..9ef6fff 100644 --- a/src/privatim/static/__init__.py +++ b/src/privatim/static/__init__.py @@ -76,6 +76,7 @@ def get_default_profile_pic_data() -> tuple[str, bytes]: sortable_custom = js('custom/sortable_custom.js', depends=[jquery], renderer=render_js_module) +custom_js = js('custom/custom.js') tom_select_css = css('tom-select.min.css') tom_select = js('tom-select.complete.min.js')