Added object for operator if not set

这个提交包含在:
int2001 2023-12-04 14:12:33 +00:00
父节点 7d0ee70f58
当前提交 905ec93724
找不到此签名对应的密钥
GPG 密钥 ID: DFB1C13CD2DB037B
共有 2 个文件被更改,包括 5 次插入1 次删除

查看文件

@ -10,6 +10,10 @@ if (!isset($options)) {
$options = "{\"datetime\":{\"show\":\"true\"},\"de\":{\"show\":\"true\"},\"dx\":{\"show\":\"true\"},\"mode\":{\"show\":\"true\"},\"rstr\":{\"show\":\"true\"},\"rsts\":{\"show\":\"true\"},\"band\":{\"show\":\"true\"},\"myrefs\":{\"show\":\"true\"},\"refs\":{\"show\":\"true\"},\"name\":{\"show\":\"true\"},\"qslvia\":{\"show\":\"true\"},\"qsl\":{\"show\":\"true\"},\"lotw\":{\"show\":\"true\"},\"eqsl\":{\"show\":\"true\"},\"qslmsg\":{\"show\":\"true\"},\"dxcc\":{\"show\":\"true\"},\"state\":{\"show\":\"true\"},\"cqzone\":{\"show\":\"true\"},\"iota\":{\"show\":\"true\"},\"pota\":{\"show\":\"true\"},\"operator\":{\"show\":\"true\"}}";
}
echo "var user_options = $options;";
if (!isset($options->operator)) {
echo "\nvar o_template = { operator: {show: 'true'}};";
echo "\nuser_options={...user_options, ...o_template}";
}
?>
</script>
<style>

查看文件

@ -84,7 +84,7 @@ function updateRow(qso) {
if (user_options.pota.show == "true"){
cells.eq(c++).html(qso.pota);
}
if (user_options.operator.show == "true"){
if ( (user_options.operator) && (user_options.operator.show == "true")){
cells.eq(c++).html(qso.operator);
}