From 829ab7b906cc077fd9dcd302b9712af21d0182c8 Mon Sep 17 00:00:00 2001 From: Tony Garnock-Jones Date: Tue, 1 May 2012 10:31:28 -0400 Subject: [PATCH] Fix nodes.js --- web/nodes.js | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/web/nodes.js b/web/nodes.js index 72e5c04..4136c3f 100644 --- a/web/nodes.js +++ b/web/nodes.js @@ -1,9 +1,6 @@ function refresh_node_list() { $.getJSON("/_/nodes", function (data) { var names = data.nodes; - names.push("bar"); - names.push("foo"); - names.push("qux"); names.sort(); var column_count = 4; /* change to match nodes.xml */ var per_column = Math.ceil(names.length / column_count); @@ -29,9 +26,6 @@ function refresh_node_list() { } function nodes_main() { - Ocamlmsg.install_tap({ - open: function (event, stream) { - refresh_node_list(); - } - }); + Ocamlmsg.$open_hooks.push(refresh_node_list); + Ocamlmsg.install_tap({}); }