|
From: <ma...@us...> - 2013-02-03 20:45:50
|
Revision: 1406
http://openautomation.svn.sourceforge.net/openautomation/?rev=1406&view=rev
Author: mayerch
Date: 2013-02-03 20:45:44 +0000 (Sun, 03 Feb 2013)
Log Message:
-----------
Postpone diagram data recieval by 100 ms to speed up the start of the other part of the page
(See also https://sourceforge.net/tracker/?func=detail&aid=3338493&group_id=296426&atid=1251144)
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 2013-02-03 20:39:47 UTC (rev 1405)
+++ CometVisu/trunk/visu/plugins/diagram/structure_plugin.js 2013-02-03 20:45:44 UTC (rev 1406)
@@ -368,6 +368,12 @@
}
function refreshDiagram(diagram, flotoptions, data) {
+ window.setTimeout(function(diagram, flotoptions, data) {
+ doRefreshDiagram(diagram, flotoptions, data);
+ }, 100, diagram, flotoptions, data );
+};
+
+function doRefreshDiagram(diagram, flotoptions, data) {
var diagram = $(diagram);
var config = jQuery.extend(true, {series: diagram.data("series")}, data || {});
@@ -469,7 +475,7 @@
if (typeof (refresh) != "undefined" && refresh) {
// reload regularly
window.setTimeout(function(diagram, flotoptions, data) {
- refreshDiagram(diagram, flotoptions, data);
+ doRefreshDiagram(diagram, flotoptions, data);
}, refresh * 1000, diagram, flotoptions, data );
}
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|