acardona/CATMAID — Issue #181: replace all timeouts with callbacks
Author: mhl
Created: 2011-12-06 15:03:41+00:00
State: open

There are various places in CATMAID where a timeout is used to wait for completion of an action, e.g.:

httpdocs/widgets/overlay.js:1357: window.setTimeout("SkeletonAnnotations.staticSelectNode( " + atn.parent.id + " )", 1000);
httpdocs/widgets/table_connector.js:160: window.setTimeout("SkeletonAnnotations.staticSelectNode(" + idToActivate + ")", 1000);
httpdocs/widgets/table_treenode.js:199: window.setTimeout("SkeletonAnnotations.staticSelectNode(" + id + ")", 1000);

... which is broken. These instances should be replaced by callbacks that are called when the `moveTo` is completed and the nodes have been refreshed.