summaryrefslogtreecommitdiffstats
path: root/modules-available/locationinfo/templates/page-locations.html
diff options
context:
space:
mode:
authorSimon Rettberg2020-11-03 13:45:37 +0100
committerSimon Rettberg2020-11-03 13:45:37 +0100
commit77f9f9d9e975bd14083656f987b426e81908dd9e (patch)
treef98263140b353ea2a3c9c6a2e19d2eec66fd5115 /modules-available/locationinfo/templates/page-locations.html
parent[locationinfo] Clean up styling a bit more (diff)
downloadslx-admin-77f9f9d9e975bd14083656f987b426e81908dd9e.tar.gz
slx-admin-77f9f9d9e975bd14083656f987b426e81908dd9e.tar.xz
slx-admin-77f9f9d9e975bd14083656f987b426e81908dd9e.zip
[locationinfo] Remove unused javascript
Most javascript was needed for editing the opening times of locations. Some javascript was still used to fill the now disabled input forms for display only. This is now done server-side, and the input fields have been replaced by a simple table.
Diffstat (limited to 'modules-available/locationinfo/templates/page-locations.html')
-rw-r--r--modules-available/locationinfo/templates/page-locations.html6
1 files changed, 2 insertions, 4 deletions
diff --git a/modules-available/locationinfo/templates/page-locations.html b/modules-available/locationinfo/templates/page-locations.html
index 553df648..fa2e3a2d 100644
--- a/modules-available/locationinfo/templates/page-locations.html
+++ b/modules-available/locationinfo/templates/page-locations.html
@@ -65,8 +65,7 @@
</div>
</div>
-<script type="text/javascript"><!--
-
+<script>
document.addEventListener("DOMContentLoaded", function () {
/**
* Load a opening time modal of a location.
@@ -79,5 +78,4 @@ document.addEventListener("DOMContentLoaded", function () {
$('#location-modal').modal('show').find('.modal-body').text('...').load("?do=locationinfo&action=config-location&id=" + locationId);
});
});
-
-//--></script>
+</script>