From 23ac83d2a8165529419dc186e02896a0df1174bc Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Thu, 22 Oct 2020 23:59:21 +1100 Subject: [PATCH] Change extension on "dynamic" js files - Yay, the editor now highlights code properly! --- InvenTree/InvenTree/urls.py | 16 ++++++++-------- .../templates/js/{barcode.html => barcode.js} | 0 InvenTree/templates/js/{bom.html => bom.js} | 0 InvenTree/templates/js/{build.html => build.js} | 0 .../templates/js/{company.html => company.js} | 0 InvenTree/templates/js/{order.html => order.js} | 0 InvenTree/templates/js/{part.html => part.js} | 0 InvenTree/templates/js/{stock.html => stock.js} | 0 .../js/{table_filters.html => table_filters.js} | 0 9 files changed, 8 insertions(+), 8 deletions(-) rename InvenTree/templates/js/{barcode.html => barcode.js} (100%) rename InvenTree/templates/js/{bom.html => bom.js} (100%) rename InvenTree/templates/js/{build.html => build.js} (100%) rename InvenTree/templates/js/{company.html => company.js} (100%) rename InvenTree/templates/js/{order.html => order.js} (100%) rename InvenTree/templates/js/{part.html => part.js} (100%) rename InvenTree/templates/js/{stock.html => stock.js} (100%) rename InvenTree/templates/js/{table_filters.html => table_filters.js} (100%) diff --git a/InvenTree/InvenTree/urls.py b/InvenTree/InvenTree/urls.py index 0b4292cbd9..7015e00d14 100644 --- a/InvenTree/InvenTree/urls.py +++ b/InvenTree/InvenTree/urls.py @@ -84,14 +84,14 @@ settings_urls = [ # Some javascript files are served 'dynamically', allowing them to pass through the Django translation layer dynamic_javascript_urls = [ - url(r'^barcode.js', DynamicJsView.as_view(template_name='js/barcode.html'), name='barcode.js'), - url(r'^part.js', DynamicJsView.as_view(template_name='js/part.html'), name='part.js'), - url(r'^stock.js', DynamicJsView.as_view(template_name='js/stock.html'), name='stock.js'), - url(r'^build.js', DynamicJsView.as_view(template_name='js/build.html'), name='build.js'), - url(r'^order.js', DynamicJsView.as_view(template_name='js/order.html'), name='order.js'), - url(r'^company.js', DynamicJsView.as_view(template_name='js/company.html'), name='company.js'), - url(r'^bom.js', DynamicJsView.as_view(template_name='js/bom.html'), name='bom.js'), - url(r'^table_filters.js', DynamicJsView.as_view(template_name='js/table_filters.html'), name='table_filters.js'), + url(r'^barcode.js', DynamicJsView.as_view(template_name='js/barcode.js'), name='barcode.js'), + url(r'^part.js', DynamicJsView.as_view(template_name='js/part.js'), name='part.js'), + url(r'^stock.js', DynamicJsView.as_view(template_name='js/stock.js'), name='stock.js'), + url(r'^build.js', DynamicJsView.as_view(template_name='js/build.js'), name='build.js'), + url(r'^order.js', DynamicJsView.as_view(template_name='js/order.js'), name='order.js'), + url(r'^company.js', DynamicJsView.as_view(template_name='js/company.js'), name='company.js'), + url(r'^bom.js', DynamicJsView.as_view(template_name='js/bom.js'), name='bom.js'), + url(r'^table_filters.js', DynamicJsView.as_view(template_name='js/table_filters.js'), name='table_filters.js'), ] urlpatterns = [ diff --git a/InvenTree/templates/js/barcode.html b/InvenTree/templates/js/barcode.js similarity index 100% rename from InvenTree/templates/js/barcode.html rename to InvenTree/templates/js/barcode.js diff --git a/InvenTree/templates/js/bom.html b/InvenTree/templates/js/bom.js similarity index 100% rename from InvenTree/templates/js/bom.html rename to InvenTree/templates/js/bom.js diff --git a/InvenTree/templates/js/build.html b/InvenTree/templates/js/build.js similarity index 100% rename from InvenTree/templates/js/build.html rename to InvenTree/templates/js/build.js diff --git a/InvenTree/templates/js/company.html b/InvenTree/templates/js/company.js similarity index 100% rename from InvenTree/templates/js/company.html rename to InvenTree/templates/js/company.js diff --git a/InvenTree/templates/js/order.html b/InvenTree/templates/js/order.js similarity index 100% rename from InvenTree/templates/js/order.html rename to InvenTree/templates/js/order.js diff --git a/InvenTree/templates/js/part.html b/InvenTree/templates/js/part.js similarity index 100% rename from InvenTree/templates/js/part.html rename to InvenTree/templates/js/part.js diff --git a/InvenTree/templates/js/stock.html b/InvenTree/templates/js/stock.js similarity index 100% rename from InvenTree/templates/js/stock.html rename to InvenTree/templates/js/stock.js diff --git a/InvenTree/templates/js/table_filters.html b/InvenTree/templates/js/table_filters.js similarity index 100% rename from InvenTree/templates/js/table_filters.html rename to InvenTree/templates/js/table_filters.js