Skip to content
Permalink
Browse files

Merge pull request #68 from ddzieduch/master

prevents breaking (-) in Safari
  • Loading branch information...
ricki-z committed Nov 22, 2018
2 parents c66a5c0 + 2b4df58 commit fece7d79a2feb554c9f00bed72907d4b39c05df3
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/cell-info.vue
@@ -24,7 +24,7 @@
tr
td(style="text-align:left;")
a(:id="'graph_'+sensor.o.id+'_on'" class="graph_on" onclick="var sensor=this.id.substring(0,this.id.length-3);document.getElementById(sensor).style.display='';document.getElementById(sensor+'_on').style.display='none';document.getElementById(sensor+'_off').style.display=''; document.getElementById('images_'+sensor.substr(6)).innerHTML='<iframe src=\"https://api.luftdaten.info/grafana/d-solo/000000004/single-sensor-view?orgId=1&var-node=' + sensor.substring(6) + '&panelId=1\" width=\"290\" height=\"200\" frameborder=\"0\"></iframe><br /><iframe src=\"https://api.luftdaten.info/grafana/d-solo/000000004/single-sensor-view?orgId=1&var-node=' + sensor.substring(6) + '&panelId=2\" width=\"290\" height=\"200\" frameborder=\"0\"></iframe><br /><br />'; return false;" href='#' style='color:white; text-decoration: none;') (+)&nbsp;{{sensor.o.id}}
a(:id="'graph_'+sensor.o.id+'_off'" class="graph_off" onclick="var sensor=this.id.substring(0,this.id.length-4);document.getElementById(sensor).style.display='none';document.getElementById(sensor+'_on').style.display='';document.getElementById(sensor+'_off').style.display='none'; document.getElementById('images_'+sensor.substr(6)).innerHTML=''; return false;" href='#' style='color:white; text-decoration: none; display: none;') (-)&nbsp;{{sensor.o.id}}
a(:id="'graph_'+sensor.o.id+'_off'" class="graph_off" onclick="var sensor=this.id.substring(0,this.id.length-4);document.getElementById(sensor).style.display='none';document.getElementById(sensor+'_on').style.display='';document.getElementById(sensor+'_off').style.display='none'; document.getElementById('images_'+sensor.substr(6)).innerHTML=''; return false;" href='#' style='color:white; text-decoration: none; word-break: keep-all; display: none;') (-)&nbsp;{{sensor.o.id}}
td {{sensor.o.data.P1.toFixed(0)}}
td {{sensor.o.data.P2.toFixed(0)}}
tr(:id = "'graph_'+sensor.o.id" style="display:none" class="cell_info_images")

0 comments on commit fece7d7

Please sign in to comment.
You can’t perform that action at this time.