Fix indentation
这个提交包含在:
父节点
99ce3d677f
当前提交
07b7930f64
共有 1 个文件被更改,包括 9 次插入 和 9 次删除
|
|
@ -1178,18 +1178,18 @@ $(document).on('keypress',function(e) {
|
||||||
}
|
}
|
||||||
$("#selectPropagation").val(data.prop_mode);
|
$("#selectPropagation").val(data.prop_mode);
|
||||||
|
|
||||||
// Display CAT Timeout warnng based on the figure given in the config file
|
// Display CAT Timeout warning based on the figure given in the config file
|
||||||
var minutes = Math.floor(<?php echo $this->optionslib->get_option('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(data.updated_minutes_ago > minutes) {
|
||||||
if($('.radio_timeout_error').length == 0) {
|
if($('.radio_timeout_error').length == 0) {
|
||||||
$('.qso_panel').prepend('<div class="alert alert-danger radio_timeout_error" role="alert">Radio connection timed-out: ' + $('select.radios option:selected').text() + ' data is ' + data.updated_minutes_ago + ' minutes old.</div>');
|
$('.qso_panel').prepend('<div class="alert alert-danger radio_timeout_error" role="alert">Radio connection timed-out: ' + $('select.radios option:selected').text() + ' data is ' + data.updated_minutes_ago + ' minutes old.</div>');
|
||||||
} else {
|
|
||||||
$('.radio_timeout_error').text('Radio connection timed-out: ' + $('select.radios option:selected').text() + ' data is ' + data.updated_minutes_ago + ' minutes old.');
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
$(".radio_timeout_error" ).remove();
|
$('.radio_timeout_error').text('Radio connection timed-out: ' + $('select.radios option:selected').text() + ' data is ' + data.updated_minutes_ago + ' minutes old.');
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
$(".radio_timeout_error" ).remove();
|
||||||
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
正在加载…
在新工单中引用