kopia lustrzana https://github.com/magicbug/Cloudlog
Add SOTA icon/link
rodzic
a4fd746a90
commit
0593f0fee1
|
@ -372,10 +372,15 @@
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-row">
|
||||||
<label for="sota_ref"><?php echo $this->lang->line('gen_hamradio_sota_reference'); ?></label>
|
<div class="form-group col-md-9">
|
||||||
<input class="form-control" id="sota_ref" type="text" name="sota_ref" value="" />
|
<label for="sota_ref"><?php echo $this->lang->line('gen_hamradio_sota_reference'); ?></label>
|
||||||
<small id="sotaRefHelp" class="form-text text-muted"><?php echo $this->lang->line('qso_sota_ref_helptext'); ?></small>
|
<input class="form-control" id="sota_ref" type="text" name="sota_ref" value="" />
|
||||||
|
<small id="sotaRefHelp" class="form-text text-muted"><?php echo $this->lang->line('qso_sota_ref_helptext'); ?></small>
|
||||||
|
</div>
|
||||||
|
<div class="form-group col-md-3 align-self-center">
|
||||||
|
<small id="sota_info" class="badge badge-secondary"></small>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
|
|
@ -78,6 +78,11 @@ $( document ).ready(function() {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$('#sota_ref').change(function(){
|
||||||
|
$('#sota_info').html('<a target="_blank" href="https://summits.sota.org.uk/summit/'+$('#sota_ref').val()+'"><img width="32" height="32" src="'+base_url+'images/icons/sota.org.uk.png"></a>');
|
||||||
|
$('#sota_info').attr('title', 'Lookup '+$('#sota_ref').val()+' summit info on sota.org.uk');
|
||||||
|
});
|
||||||
|
|
||||||
$('#darc_dok').selectize({
|
$('#darc_dok').selectize({
|
||||||
maxItems: 1,
|
maxItems: 1,
|
||||||
closeAfterSelect: true,
|
closeAfterSelect: true,
|
||||||
|
@ -249,12 +254,14 @@ function reset_fields() {
|
||||||
$('#lotw_info').text("");
|
$('#lotw_info').text("");
|
||||||
$('#qrz_info').text("");
|
$('#qrz_info').text("");
|
||||||
$('#hamqth_info').text("");
|
$('#hamqth_info').text("");
|
||||||
|
$('#sota_info').text("");
|
||||||
$('#dxcc_id').val("");
|
$('#dxcc_id').val("");
|
||||||
$('#cqz').val("");
|
$('#cqz').val("");
|
||||||
$('#name').val("");
|
$('#name').val("");
|
||||||
$('#qth').val("");
|
$('#qth').val("");
|
||||||
$('#locator').val("");
|
$('#locator').val("");
|
||||||
$('#iota_ref').val("");
|
$('#iota_ref').val("");
|
||||||
|
$('#sota_ref').val("");
|
||||||
$("#locator").removeClass("workedGrid");
|
$("#locator").removeClass("workedGrid");
|
||||||
$("#locator").removeClass("newGrid");
|
$("#locator").removeClass("newGrid");
|
||||||
$("#callsign").removeClass("workedGrid");
|
$("#callsign").removeClass("workedGrid");
|
||||||
|
@ -452,6 +459,7 @@ $("#callsign").focusout(function() {
|
||||||
$('#qth').val("");
|
$('#qth').val("");
|
||||||
$('#locator').val("");
|
$('#locator').val("");
|
||||||
$('#iota_ref').val("");
|
$('#iota_ref').val("");
|
||||||
|
$('#sota_ref').val("");
|
||||||
$("#locator").removeClass("workedGrid");
|
$("#locator").removeClass("workedGrid");
|
||||||
$("#locator").removeClass("newGrid");
|
$("#locator").removeClass("newGrid");
|
||||||
$("#callsign").removeClass("workedGrid");
|
$("#callsign").removeClass("workedGrid");
|
||||||
|
|
Plik binarny nie jest wyświetlany.
Po Szerokość: | Wysokość: | Rozmiar: 38 KiB |
Ładowanie…
Reference in New Issue