Merge pull request #1507 from phl0/fixRadioTimeout

Fix Radio timeout
这个提交包含在:
Peter Goodhall 2022-06-30 22:24:15 +01:00 提交者 GitHub
当前提交 7ff52f128a
找不到此签名对应的密钥
GPG 密钥 ID: 4AEE18F83AFDEB23
共有 3 个文件被更改,包括 2 次插入15 次删除

查看文件

@ -47,19 +47,6 @@ $config['measurement_base'] = 'M';
*/
$config['map_gridsquares'] = FALSE;
/*
|--------------------------------------------------------------------------
| CAT Timeout Warning Inverval
|--------------------------------------------------------------------------
|
| The external CAT applications can obviously stop working for various reasons
| this interval is used for displaying a warning on the QSO Panel
|
| Default is: 1800 seconds (30 minutes)
|
*/
$config['cat_timeout_interval'] = 1800;
/*
|--------------------------------------------------------------------------
| Public Search

查看文件

@ -137,7 +137,7 @@ class Options extends CI_Controller {
else
{
// Update theme choice within the options system
$radioTimeout_update = $this->optionslib->update('cat_timeout_interval', $this->input->post('radioTimeout'));
$radioTimeout_update = $this->optionslib->update('cat_timeout_interval', $this->input->post('radioTimeout'), 'yes');
// If theme update is complete set a flashsession with a success note
if($radioTimeout_update == TRUE) {

查看文件

@ -1126,7 +1126,7 @@ $(document).on('keypress',function(e) {
$("#selectPropagation").val(data.prop_mode);
// Display CAT Timeout warnng based on the figure given in the config file
var minutes = Math.floor(<?php echo $this->config->item('cat_timeout_interval'); ?> / 60);
var minutes = Math.floor(<?php echo $this->optionslib->get_option('cat_timeout_interval'); ?> / 60);
if(data.updated_minutes_ago > minutes) {
if($('.radio_timeout_error').length == 0) {