projects
/
weathermon.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a09d3a
)
Обработка неопределенных значений в веб-интерфейсе.
author
Roman Bazalevsky
<rvb@rvb.name>
Tue, 31 Dec 2019 14:44:36 +0000
(17:44 +0300)
committer
Roman Bazalevsky
<rvb@rvb.name>
Tue, 31 Dec 2019 14:45:12 +0000
(17:45 +0300)
openwrt-web/meteo/meteo.js
patch
|
blob
|
history
diff --git
a/openwrt-web/meteo/meteo.js
b/openwrt-web/meteo/meteo.js
index 9060847fccbd5ac57e8dfae18d749faed2ec3c9f..36ff690eb91604665b9a9cf08db6feabc9fa1781 100644
(file)
--- a/
openwrt-web/meteo/meteo.js
+++ b/
openwrt-web/meteo/meteo.js
@@
-25,7
+25,7
@@
function RefreshPageState() {
for (var param in returnedData[sensor_id][sensor]) {
sensor_path = sensor_id+"."+sensor+"."+param;
name = properties["names"][sensor_path];
- if (
! name.startsWith("-
")) {
+ if (
(! name.startsWith("-")) && (name != "undefined
")) {
value = returnedData[sensor_id][sensor][param];
if (! name) { name = sensor_path; }
units = properties["units"][sensor_path];