projects
/
project
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
modules/admin-full: implement connection graph, cross browser fixes
[project/luci.git]
/
modules
/
admin-full
/
luasrc
/
view
/
admin_status
/
bandwidth.htm
diff --git
a/modules/admin-full/luasrc/view/admin_status/bandwidth.htm
b/modules/admin-full/luasrc/view/admin_status/bandwidth.htm
index
f9e1e2e
..
d898cb1
100644
(file)
--- a/
modules/admin-full/luasrc/view/admin_status/bandwidth.htm
+++ b/
modules/admin-full/luasrc/view/admin_status/bandwidth.htm
@@
-202,7
+202,15
@@
$Id$
/* wait for SVG */
window.setTimeout(
function() {
/* wait for SVG */
window.setTimeout(
function() {
- G = document.embeds["bwsvg"].getSVGDocument();
+ var svg = document.getElementById('bwsvg');
+
+ try {
+ G = svg.getSVGDocument
+ ? svg.getSVGDocument() : svg.contentDocument;
+ }
+ catch(e) {
+ G = document.embeds['bwsvg'].getSVGDocument();
+ }
if (!G)
{
if (!G)
{
@@
-211,8
+219,8
@@
$Id$
else
{
/* find sizes */
else
{
/* find sizes */
- width =
document.embeds["bwsvg"]
.offsetWidth - 2;
- height =
document.embeds["bwsvg"]
.offsetHeight - 2;
+ width =
svg
.offsetWidth - 2;
+ height =
svg
.offsetHeight - 2;
data_wanted = Math.ceil(width / step);
/* prefill datasets */
data_wanted = Math.ceil(width / step);
/* prefill datasets */