|
From: <ma...@us...> - 2010-12-12 11:31:34
|
Revision: 203
http://openautomation.svn.sourceforge.net/openautomation/?rev=203&view=rev
Author: mayerch
Date: 2010-12-12 11:31:28 +0000 (Sun, 12 Dec 2010)
Log Message:
-----------
Fixed a bug that resulted in an error and no diagram beeing shown when
$("<span class='link'><a href='#' /></a>").find("a").css("color")
didn't return a color. Just fall back to the grid color then...
Modified Paths:
--------------
CometVisu/trunk/visu/plugins/diagram/structure_plugin.js
Modified: CometVisu/trunk/visu/plugins/diagram/structure_plugin.js
===================================================================
--- CometVisu/trunk/visu/plugins/diagram/structure_plugin.js 2010-12-11 23:58:22 UTC (rev 202)
+++ CometVisu/trunk/visu/plugins/diagram/structure_plugin.js 2010-12-12 11:31:28 UTC (rev 203)
@@ -184,7 +184,8 @@
dataType: "json",
type: "GET",
success: function(data) {
- $.plot(diagram, [{color: diagramColors.data, data: data}], options);
+ var color = diagramColors.data || options.grid.color;
+ $.plot(diagram, [{color: color, data: data}], options);
}
});
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|