From 101c8b4665f3fd2de28f7f426583408459a1ccaf Mon Sep 17 00:00:00 2001 From: phl0 Date: Mon, 2 Dec 2024 23:55:12 +0100 Subject: [PATCH 1/2] LoTW name for SATs should not be required --- application/views/satellite/create.php | 2 +- application/views/satellite/edit.php | 2 +- assets/js/sections/satellite.js | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/application/views/satellite/create.php b/application/views/satellite/create.php index 6756b6e36..db9b61ccc 100644 --- a/application/views/satellite/create.php +++ b/application/views/satellite/create.php @@ -26,7 +26,7 @@
- +
diff --git a/application/views/satellite/edit.php b/application/views/satellite/edit.php index dce7d55fa..aa3b41732 100644 --- a/application/views/satellite/edit.php +++ b/application/views/satellite/edit.php @@ -10,7 +10,7 @@
- name; } ?>" required> + name; } ?>">
diff --git a/assets/js/sections/satellite.js b/assets/js/sections/satellite.js index c2b6e92d0..a4d3ef117 100644 --- a/assets/js/sections/satellite.js +++ b/assets/js/sections/satellite.js @@ -55,7 +55,7 @@ function createSatelliteDialog() { function createSatellite(form) { $(".alert").remove(); - if (form.nameInput.value == "") { + if (form.displayNameInput.value == "") { $('#create_satellite').prepend(''); } else { @@ -108,7 +108,7 @@ function editSatelliteDialog(id) { function saveUpdatedSatellite(form) { $(".alert").remove(); - if (form.nameInput.value == "") { + if (form.displayNameInput.value == "") { $('#edit_satellite_dialog').prepend(''); } else { From 25080f153287d396a6e5614a92d26b3471ff6bf2 Mon Sep 17 00:00:00 2001 From: phl0 Date: Tue, 3 Dec 2024 23:01:15 +0100 Subject: [PATCH 2/2] Add a space --- assets/js/sections/satellite.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/js/sections/satellite.js b/assets/js/sections/satellite.js index a4d3ef117..35c131026 100644 --- a/assets/js/sections/satellite.js +++ b/assets/js/sections/satellite.js @@ -56,7 +56,7 @@ function createSatelliteDialog() { function createSatellite(form) { $(".alert").remove(); if (form.displayNameInput.value == "") { - $('#create_satellite').prepend(''); + $('#create_satellite').prepend(''); } else { $.ajax({ @@ -109,7 +109,7 @@ function editSatelliteDialog(id) { function saveUpdatedSatellite(form) { $(".alert").remove(); if (form.displayNameInput.value == "") { - $('#edit_satellite_dialog').prepend(''); + $('#edit_satellite_dialog').prepend(''); } else { $.ajax({