Pretty Code
这个提交包含在:
父节点
2fe5720da9
当前提交
262c0ea888
共有 1 个文件被更改,包括 13 次插入 和 13 次删除
|
|
@ -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>
|
||||
|
||||
|
|
|
|||
正在加载…
在新工单中引用