diff --git a/InvenTree/InvenTree/urls.py b/InvenTree/InvenTree/urls.py index 8b0ba630f0..d795b81472 100644 --- a/InvenTree/InvenTree/urls.py +++ b/InvenTree/InvenTree/urls.py @@ -134,6 +134,7 @@ translated_javascript_urls = [ url(r'^plugin.js', DynamicJsView.as_view(template_name='js/translated/plugin.js'), name='plugin.js'), url(r'^tables.js', DynamicJsView.as_view(template_name='js/translated/tables.js'), name='tables.js'), url(r'^table_filters.js', DynamicJsView.as_view(template_name='js/translated/table_filters.js'), name='table_filters.js'), + url(r'^notification.js', DynamicJsView.as_view(template_name='js/translated/notification.js'), name='notification.js'), ] backendpatterns = [ diff --git a/InvenTree/templates/account/base.html b/InvenTree/templates/account/base.html index ea3795e87c..6c54faac67 100644 --- a/InvenTree/templates/account/base.html +++ b/InvenTree/templates/account/base.html @@ -91,7 +91,7 @@ - + diff --git a/InvenTree/templates/base.html b/InvenTree/templates/base.html index 758917a95f..f916344bf9 100644 --- a/InvenTree/templates/base.html +++ b/InvenTree/templates/base.html @@ -162,7 +162,6 @@ - @@ -190,6 +189,7 @@ + diff --git a/InvenTree/InvenTree/static/script/inventree/notification.js b/InvenTree/templates/js/translated/notification.js similarity index 99% rename from InvenTree/InvenTree/static/script/inventree/notification.js rename to InvenTree/templates/js/translated/notification.js index e4b6f884bf..0aca0c2d85 100644 --- a/InvenTree/InvenTree/static/script/inventree/notification.js +++ b/InvenTree/templates/js/translated/notification.js @@ -1,3 +1,6 @@ +{% load i18n %} +{% load inventree_extras %} + /* * Add a cached alert message to sesion storage */ diff --git a/InvenTree/templates/skeleton.html b/InvenTree/templates/skeleton.html index ffd634e4f4..9b78a9a329 100644 --- a/InvenTree/templates/skeleton.html +++ b/InvenTree/templates/skeleton.html @@ -77,7 +77,7 @@ - + {% block body_scripts_inventree %} {% endblock %}