mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
Pretty Code
This commit is contained in:
@@ -62,20 +62,20 @@
|
||||
</div>
|
||||
<!-- DXCC Deleted Warning -->
|
||||
<script>
|
||||
var lang_station_location_dxcc_warning = '<?php echo lang('station_location_dxcc_warning'); ?>';
|
||||
</script>
|
||||
<script>
|
||||
document.getElementById('dxcc_select').addEventListener('change', function() {
|
||||
var selectedOption = this.options[this.selectedIndex];
|
||||
var isDeleted = selectedOption.textContent.includes('<?php echo lang('gen_hamradio_deleted_dxcc'); ?>');
|
||||
var lang_station_location_dxcc_warning = '<?php echo lang('station_location_dxcc_warning'); ?>';
|
||||
</script>
|
||||
<script>
|
||||
document.getElementById('dxcc_select').addEventListener('change', function() {
|
||||
var selectedOption = this.options[this.selectedIndex];
|
||||
var isDeleted = selectedOption.textContent.includes('<?php echo lang('gen_hamradio_deleted_dxcc'); ?>');
|
||||
|
||||
if (isDeleted) {
|
||||
this.style.border = '2px solid red';
|
||||
warningMessage.innerText = lang_station_location_dxcc_warning;
|
||||
} else {
|
||||
this.style.border = '';
|
||||
warningMessage.innerText = "";
|
||||
}
|
||||
if (isDeleted) {
|
||||
this.style.border = '2px solid red';
|
||||
warningMessage.innerText = lang_station_location_dxcc_warning;
|
||||
} else {
|
||||
this.style.border = '';
|
||||
warningMessage.innerText = "";
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user