Mikesch-mp / icingaweb2-module-grafana

Grafana module for Icinga Web 2 (supports InfluxDB & Graphite)
https://icinga.com/community/
GNU General Public License v2.0
241 stars 94 forks source link

iframe.js: Update content in a more compatible way #263

Closed nilmerg closed 3 years ago

nilmerg commented 3 years ago

The previous implementation was very error prone as it relied on the exact location of the existing content and updated content. If there was any difference, the update from the behavior didn't work correctly and produced an incorrect HTML hierarchy.

This will fix this so that the behavior is more compatible with how the content it is rendering is structured. I've also included basic support for Icinga DB Web, though this might be still subject to change. I hope to remember to notify you if this is the case. :roll_eyes:

The behavior should now work fine, as long as the following is the case:

Linuxfabrik commented 3 years ago

it works, thank you both very much :)