Also add shortcut for date input

这个提交包含在:
phl0 2021-08-29 21:17:43 +02:00
父节点 deb4d6cd53
当前提交 9bf9faec1e
找不到此签名对应的密钥
GPG 密钥 ID: 48EA1E640798CA9A

查看文件

@ -459,7 +459,7 @@ if ($('#frequency').val() == "")
});
}
/* format time input shortcut */
/* time input shortcut */
$('#start_time').change(function() {
var raw_time = $(this).val();
if(raw_time.match(/^\d\[0-6]d$/)) {
@ -471,6 +471,15 @@ $('#start_time').change(function() {
}
});
/* date input shortcut */
$('#start_date').change(function() {
raw_date = $(this).val();
if(raw_date.match(/^[12]\d\d\d[01]\d[0123]\d$/)) {
raw_date = raw_date.substring(0,4)+"-"+raw_date.substring(4,6)+"-"+raw_date.substring(6,8);
$('#start_date').val(raw_date);
}
});
/* on mode change */
$('.mode').change(function() {
$.get('qso/band_to_freq/' + $('#band').val() + '/' + $('.mode').val(), function(result) {