From 70c408ac8238201887365c22fbe2a8cd1c9734ec Mon Sep 17 00:00:00 2001 From: Peter Goodhall Date: Thu, 20 Jan 2022 14:44:32 +0000 Subject: [PATCH] [Station Locations] Added datatable.js to allow sorting etc --- application/views/interface_assets/footer.php | 5 +++++ application/views/station_profile/index.php | 2 +- assets/js/sections/station_locations.js | 3 +++ 3 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 assets/js/sections/station_locations.js diff --git a/application/views/interface_assets/footer.php b/application/views/interface_assets/footer.php index 8d6bf88f..26291715 100644 --- a/application/views/interface_assets/footer.php +++ b/application/views/interface_assets/footer.php @@ -50,6 +50,11 @@ function load_was_map() { +uri->segment(1) == "station") { ?> + + + + uri->segment(1) == "search" && $this->uri->segment(2) == "filter") { ?> diff --git a/application/views/station_profile/index.php b/application/views/station_profile/index.php index 3dacda2e..970db8ec 100644 --- a/application/views/station_profile/index.php +++ b/application/views/station_profile/index.php @@ -38,7 +38,7 @@
- +
diff --git a/assets/js/sections/station_locations.js b/assets/js/sections/station_locations.js new file mode 100644 index 00000000..508a57ad --- /dev/null +++ b/assets/js/sections/station_locations.js @@ -0,0 +1,3 @@ +$(document).ready( function () { + $('#station_locations_table').DataTable(); +} ); \ No newline at end of file
Profile Name