Only reset timers in live QSO mode
这个提交包含在:
父节点
81f330738e
当前提交
02ccbc8db2
共有 3 个文件被更改,包括 9 次插入 和 7 次删除
|
|
@ -1146,7 +1146,7 @@ $(document).on('keypress',function(e) {
|
||||||
|
|
||||||
if ( ! manual ) {
|
if ( ! manual ) {
|
||||||
$(function($) {
|
$(function($) {
|
||||||
resetTimers();
|
resetTimers(0);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
@ -1183,7 +1183,7 @@ $(document).on('keypress',function(e) {
|
||||||
if (e.key === "Escape") { // escape key maps to keycode `27`
|
if (e.key === "Escape") { // escape key maps to keycode `27`
|
||||||
reset_fields();
|
reset_fields();
|
||||||
if ( ! manual ) {
|
if ( ! manual ) {
|
||||||
resetTimers()
|
resetTimers(0)
|
||||||
}
|
}
|
||||||
$('#callsign').val("");
|
$('#callsign').val("");
|
||||||
$("#callsign").focus();
|
$("#callsign").focus();
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
<div class="col-sm-5">
|
<div class="col-sm-5">
|
||||||
<div class="card">
|
<div class="card">
|
||||||
|
|
||||||
<form id="qso_input" method="post" action="<?php echo site_url('qso') . "?manual=" . $_GET['manual']; ?>" name="qsos" autocomplete="off" onReset="resetTimers();">
|
<form id="qso_input" method="post" action="<?php echo site_url('qso') . "?manual=" . $_GET['manual']; ?>" name="qsos" autocomplete="off" onReset="resetTimers(<?php echo $_GET['manual']; ?>);">
|
||||||
|
|
||||||
<div class="card-header">
|
<div class="card-header">
|
||||||
<ul style="font-size: 15px;" class="nav nav-tabs card-header-tabs pull-right" id="myTab" role="tablist">
|
<ul style="font-size: 15px;" class="nav nav-tabs card-header-tabs pull-right" id="myTab" role="tablist">
|
||||||
|
|
|
||||||
|
|
@ -522,10 +522,12 @@ function reset_fields() {
|
||||||
$('.dxccsummary').remove();
|
$('.dxccsummary').remove();
|
||||||
}
|
}
|
||||||
|
|
||||||
function resetTimers() {
|
function resetTimers(manual) {
|
||||||
handleStart = setInterval(function() { getUTCTimeStamp($('.input_start_time')); }, 500);
|
if (typeof manual !== 'undefined' && manual != 1) {
|
||||||
handleEnd = setInterval(function() { getUTCTimeStamp($('.input_end_time')); }, 500);
|
handleStart = setInterval(function() { getUTCTimeStamp($('.input_start_time')); }, 500);
|
||||||
handleDate = setInterval(function() { getUTCDateStamp($('.input_date')); }, 1000);
|
handleEnd = setInterval(function() { getUTCTimeStamp($('.input_end_time')); }, 500);
|
||||||
|
handleDate = setInterval(function() { getUTCDateStamp($('.input_date')); }, 1000);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$("#callsign").focusout(function() {
|
$("#callsign").focusout(function() {
|
||||||
|
|
|
||||||
正在加载…
在新工单中引用