From 1adae9fd885d8342cff87fc89540ff828aadbea8 Mon Sep 17 00:00:00 2001
From: Andreas <6977712+AndreasK79@users.noreply.github.com>
Date: Sat, 7 Aug 2021 10:13:38 +0200
Subject: [PATCH] [Contesting] Started working on adding more possibilities for
contest exchange
---
application/views/contesting/index.php | 46 ++++++++++++++++++--------
assets/js/sections/contesting.js | 29 +++++++++++++---
2 files changed, 56 insertions(+), 19 deletions(-)
diff --git a/application/views/contesting/index.php b/application/views/contesting/index.php
index 2b482085..491a6966 100644
--- a/application/views/contesting/index.php
+++ b/application/views/contesting/index.php
@@ -8,19 +8,17 @@
diff --git a/assets/js/sections/contesting.js b/assets/js/sections/contesting.js
index cf1b6090..0eef65e8 100644
--- a/assets/js/sections/contesting.js
+++ b/assets/js/sections/contesting.js
@@ -9,10 +9,10 @@ $( document ).ready(function() {
setRst($("#mode").val());
// Check to see what serial type is selected and set validation
- if($('#serial').is(':checked')) {
+ if($('#serial').is(':checked')) {
set_serial_number_input_validation();
}
- if($('#other').is(':checked')) {
+ if($('#other').is(':checked')) {
set_other_input_validation();
}
});
@@ -181,18 +181,37 @@ $('#band').change(function() {
// Change Serial Validation when selected
$('#serial').change(function() {
- if($('#serial').is(':checked')) {
+ if($('#serial').is(':checked')) {
set_serial_number_input_validation();
}
});
// Change other serial type when selected
$('#other').change(function() {
- if($('#other').is(':checked')) {
+ if($('#other').is(':checked')) {
set_other_input_validation();
}
});
+$('#exchangetype').change(function(){
+ var exchangetype = $("#exchangetype option:selected").text();
+ if (exchangetype == 'None') {
+
+ }
+ if (exchangetype == 'Serial') {
+
+ }
+ if (exchangetype == 'Serialexchange') {
+
+ }
+ if (exchangetype == 'Serialgridsquare') {
+
+ }
+ if (exchangetype == 'Gridsquare') {
+
+ }
+});
+
/*
Function: set_serial_number_input_validation
Job: This sets the field input to number for validation
@@ -209,4 +228,4 @@ function set_serial_number_input_validation() {
function set_other_input_validation() {
$('#exch_sent').attr('type', 'text');
$('#exch_recv').attr('type', 'text');
-}
\ No newline at end of file
+}