infobox/*infos: fix iframe height option

This commit is contained in:
PetaByteBoy // Milan Pässler 2016-04-24 19:47:48 +02:00 committed by Milan Pässler
parent 2f28c51da1
commit 075076a2fe
3 changed files with 2 additions and 3 deletions

View File

@ -150,7 +150,7 @@ function attributeEntry(el, label, value) {
function createIframe(opt, width, height) { function createIframe(opt, width, height) {
el = document.createElement("iframe") el = document.createElement("iframe")
width = typeof width !== 'undefined' ? width : '525px'; width = typeof width !== 'undefined' ? width : '525px';
height = typeof height !== 'undefined' ? width : '350px'; height = typeof height !== 'undefined' ? height : '350px';
if (opt.src) if (opt.src)
el.src = opt.src el.src = opt.src
@ -195,7 +195,7 @@ function showStat(o, subst) {
} }
if (o.iframe) { if (o.iframe) {
content = createIframe(o.iframe) content = createIframe(o.iframe, o.width, o.height)
if (o.iframe.src) if (o.iframe.src)
content.src = listReplace(o.iframe.src, subst) content.src = listReplace(o.iframe.src, subst)
else else

BIN
lib/infobox/.charts.js.swp Normal file

Binary file not shown.

View File

@ -113,7 +113,6 @@ function (moment, Router, L, GUI, numeral) {
}) })
links.forEach( function (d) { links.forEach( function (d) {
console.log(d)
if (d.type === "tunnel" || d.type === "fastd") if (d.type === "tunnel" || d.type === "fastd")
d.type = "fastd" d.type = "fastd"
else if (d.type === "l2tp") { else if (d.type === "l2tp") {