Added object for operator if not set
这个提交包含在:
父节点
7d0ee70f58
当前提交
905ec93724
共有 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);
|
||||
}
|
||||
|
||||
|
|
|
|||
正在加载…
在新工单中引用