diff --git a/ckanext/odsh/fanstatic/webassets.yaml b/ckanext/odsh/fanstatic/webassets.yml similarity index 95% rename from ckanext/odsh/fanstatic/webassets.yaml rename to ckanext/odsh/fanstatic/webassets.yml index ade8f201599ac646d4d599133392319fb08cae1b..25d367dd48cac14bb4a988e2afd3b5f5c69deef4 100644 --- a/ckanext/odsh/fanstatic/webassets.yaml +++ b/ckanext/odsh/fanstatic/webassets.yml @@ -2,6 +2,7 @@ odsh_base_script: filters: rjsmin # preprocessor output: ckanext-odsh/odsh_base.js contents: + - vendor/jquery-ui-autocomplete/jquery-ui.js - autocomplete.js - odsh.js @@ -15,6 +16,9 @@ odsh_base_style: odsh_datepicker_script: filters: rjsmin # preprocessor output: ckanext-odsh/odsh_datepicker.js + extra: + preload: + - vendor/jquery contents: - moment.js - bootstrap-datepicker.js @@ -50,6 +54,9 @@ odsh_popover_script: tpsh_toggle_menu: filters: rjsmin # preprocessor output: ckanext-odsh/tpsh_toggle_menu.js + extra: + preload: + - base/main contents: - tpsh_toggle_menu.js diff --git a/ckanext/odsh/plugin.py b/ckanext/odsh/plugin.py index 7ec598bbe4558615c83a82d33c1d0b61f36935ba..8802e6e3218355cc8dfba4c3c0eaa98da69a9778 100644 --- a/ckanext/odsh/plugin.py +++ b/ckanext/odsh/plugin.py @@ -59,7 +59,7 @@ class OdshPlugin(plugins.SingletonPlugin, DefaultTranslation, DefaultDatasetForm def update_config(self, config_): toolkit.add_template_directory(config_, 'templates') toolkit.add_public_directory(config_, 'public') - toolkit.add_resource('fanstatic', 'odsh') + toolkit.add_resource('fanstatic', 'ckanext-odsh') # IDatasetForm diff --git a/ckanext/odsh/templates/base.html b/ckanext/odsh/templates/base.html index 610e39a20d91d0c64e261304a891f4314ed7b330..fc19aedb7f8eb4a5705c54971a091cb446d64d96 100644 --- a/ckanext/odsh/templates/base.html +++ b/ckanext/odsh/templates/base.html @@ -4,6 +4,7 @@ {% asset 'ckanext-odsh/odsh_base_script' %} {% endblock scripts %} {% block styles %} + {{ super() }} {% asset 'ckanext-odsh/odsh_base_style' %} {% endblock styles %} diff --git a/ckanext/odsh/templates/package/search.html b/ckanext/odsh/templates/package/search.html index 899ff4273e7a7d1dad76ab564e55c75f5c674fe7..714f9ea55247f5539ce19cef79b7ace004db8265 100644 --- a/ckanext/odsh/templates/package/search.html +++ b/ckanext/odsh/templates/package/search.html @@ -1,6 +1,7 @@ {% ckan_extends %} {% block styles %} + {{ super() }} {% asset 'ckanext-odsh/odsh_datepicker_style' %} {% endblock styles %}