mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
Merge pull request #1506 from HB9HIL/qrz_hint
show hint about qrz.com login credentials. QRZ.com needs your callsig…
This commit is contained in:
@@ -37,7 +37,7 @@ $config['display_freq'] = true;
|
||||
| QRZ Login Options
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| 'qrz_username' QRZ.com user login
|
||||
| 'qrz_username' QRZ.com user login (callsign, not email)
|
||||
| 'qrz_password' QRZ.com user password
|
||||
| 'use_fullname' Get full names from QRZ, may not be GDPR compliant
|
||||
*/
|
||||
|
||||
@@ -37,7 +37,7 @@ $config['display_freq'] = true;
|
||||
| QRZ Login Options
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| 'qrz_username' QRZ.com user login
|
||||
| 'qrz_username' QRZ.com user login (callsign, not email)
|
||||
| 'qrz_password' QRZ.com user password
|
||||
| 'use_fullname' Get full names from QRZ, may not be GDPR compliant
|
||||
*/
|
||||
|
||||
@@ -391,6 +391,10 @@ if (!file_exists('.lock')) {
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="alert alert-info" id="qrz_hint" style="display: none; margin-top: 10px;">
|
||||
<p><i class="fas fa-lightbulb"></i> <?= __("Good to know:"); ?></p>
|
||||
<?= __("Use your callsign as your username for QRZ.com. The XML API does not support email addresses."); ?>
|
||||
</div>
|
||||
</div>
|
||||
<a class="btn btn-sm btn-secondary" id="advancedSettingsButton"><?= __("Advanced Settings"); ?></a>
|
||||
<div class="modal fade" id="advancedSettingsModal" tabindex="-1" aria-labelledby="advancedSettingsModalLabel" aria-hidden="true">
|
||||
@@ -1405,12 +1409,25 @@ if (!file_exists('.lock')) {
|
||||
|
||||
let directory = $('#directory');
|
||||
let websiteurl = $('#websiteurl');
|
||||
let callbook_type = $('#global_call_lookup');
|
||||
let callbook_username = $('#callbook_username');
|
||||
let callbook_password = $('#callbook_password');
|
||||
|
||||
// On Page Load
|
||||
$(document).ready(function() {
|
||||
|
||||
if (callbook_type.val() === 'qrz') {
|
||||
$('#qrz_hint').show();
|
||||
}
|
||||
|
||||
callbook_type.on('change', function() {
|
||||
if (callbook_type.val() === 'qrz') {
|
||||
$('#qrz_hint').show();
|
||||
} else {
|
||||
$('#qrz_hint').hide();
|
||||
}
|
||||
});
|
||||
|
||||
$('#advancedSettingsButton').click(function() {
|
||||
$('#advancedSettingsModal').modal('show');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user