diff --git a/application/views/logbookadvanced/index.php b/application/views/logbookadvanced/index.php index c2a3bd0b5..2ecbf5fc9 100644 --- a/application/views/logbookadvanced/index.php +++ b/application/views/logbookadvanced/index.php @@ -9,12 +9,13 @@ var custom_date_format = ""; 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\"}}"; } +$current_opts=json_decode($options); echo "var user_options = $options;"; -if (!isset($options->pota)) { +if (!isset($current_opts->pota)) { echo "\nvar o_template = { pota: {show: 'true'}};"; echo "\nuser_options={...user_options, ...o_template}"; } -if (!isset($options->operator)) { +if (!isset($current_opts->operator)) { echo "\nvar o_template = { operator: {show: 'true'}};"; echo "\nuser_options={...user_options, ...o_template}"; }