Implement shortcut for time input during post QSO
这个提交包含在:
父节点
8eebe41990
当前提交
deb4d6cd53
共有 1 个文件被更改,包括 12 次插入 和 0 次删除
|
|
@ -459,6 +459,18 @@ if ($('#frequency').val() == "")
|
|||
});
|
||||
}
|
||||
|
||||
/* format time input shortcut */
|
||||
$('#start_time').change(function() {
|
||||
var raw_time = $(this).val();
|
||||
if(raw_time.match(/^\d\[0-6]d$/)) {
|
||||
raw_time = "0"+raw_time;
|
||||
}
|
||||
if(raw_time.match(/^[012]\d[0-5]\d$/)) {
|
||||
raw_time = raw_time.substring(0,2)+":"+raw_time.substring(2,4);
|
||||
$('#start_time').val(raw_time);
|
||||
}
|
||||
});
|
||||
|
||||
/* on mode change */
|
||||
$('.mode').change(function() {
|
||||
$.get('qso/band_to_freq/' + $('#band').val() + '/' + $('.mode').val(), function(result) {
|
||||
|
|
|
|||
正在加载…
在新工单中引用