From 1b343f036ebe212a6d26769215368deea32909ca Mon Sep 17 00:00:00 2001 From: Peter Goodhall Date: Thu, 20 Jan 2022 14:50:42 +0000 Subject: [PATCH] [Station Logbooks] Added datatable.js --- application/views/interface_assets/footer.php | 8 ++++++-- application/views/logbooks/edit.php | 2 +- application/views/logbooks/index.php | 2 +- assets/js/sections/station_logbooks.js | 7 +++++++ 4 files changed, 15 insertions(+), 4 deletions(-) create mode 100644 assets/js/sections/station_logbooks.js diff --git a/application/views/interface_assets/footer.php b/application/views/interface_assets/footer.php index 26291715..2b9da29f 100644 --- a/application/views/interface_assets/footer.php +++ b/application/views/interface_assets/footer.php @@ -51,10 +51,14 @@ function load_was_map() { uri->segment(1) == "station") { ?> - - + +uri->segment(1) == "logbooks") { ?> + + + + uri->segment(1) == "search" && $this->uri->segment(2) == "filter") { ?> diff --git a/application/views/logbooks/edit.php b/application/views/logbooks/edit.php index d31e62ca..29c844d6 100644 --- a/application/views/logbooks/edit.php +++ b/application/views/logbooks/edit.php @@ -72,7 +72,7 @@
- +
diff --git a/application/views/logbooks/index.php b/application/views/logbooks/index.php index 673a5a76..ac522e03 100644 --- a/application/views/logbooks/index.php +++ b/application/views/logbooks/index.php @@ -28,7 +28,7 @@ num_rows() > 0) { ?>
-
Location Name
+
diff --git a/assets/js/sections/station_logbooks.js b/assets/js/sections/station_logbooks.js new file mode 100644 index 00000000..90294868 --- /dev/null +++ b/assets/js/sections/station_logbooks.js @@ -0,0 +1,7 @@ +$(document).ready( function () { + $('#station_logbooks_table').DataTable(); +} ); + +$(document).ready( function () { + $('#station_logbooks_linked_table').DataTable(); +} ); \ No newline at end of file
Name