summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 48c757c)
raw | patch | inline | side by side (parent: 48c757c)
author | Florian Forster <octo@noris.net> | |
Wed, 22 Dec 2010 16:38:41 +0000 (17:38 +0100) | ||
committer | Florian Forster <octo@noris.net> | |
Wed, 22 Dec 2010 16:38:41 +0000 (17:38 +0100) |
share/collection.js | patch | blob | history |
diff --git a/share/collection.js b/share/collection.js
index 3ee5ccc03361a2ebafa7c1dae319f66dca632c6b..c7200868b0417c56165d485d94f192181ea2d268 100644 (file)
--- a/share/collection.js
+++ b/share/collection.js
}
} /* }}} function value_to_string */
-function instance_get_params (graph) /* {{{ */
+function instance_get_params (inst) /* {{{ */
{
- var graph_selector = graph.graph_selector;
- var inst_selector = graph.instance_selector;
+ var graph_selector = inst.graph_selector;
+ var inst_selector = inst.instance_selector;
var selector = {};
if (graph_selector.host == inst_selector.host)
return (ret);
} /* }}} ident_clone */
-function graph_get_defs (graph) /* {{{ */
+function inst_get_defs (inst) /* {{{ */
{
- if (!graph.def)
+ if (!inst.def)
{
- var params = ident_clone (graph.graph_selector);
+ var params = instance_get_params (inst);
params.action = "graph_def_json";
$.ajax({
if (!data)
return;
- graph.def = data;
+ inst.def = data;
}});
}
- if (graph.def)
- return (graph.def);
+ if (inst.def)
+ return (inst.def);
return;
-} /* }}} graph_get_defs */
+} /* }}} inst_get_defs */
function ident_matches (selector, ident) /* {{{ */
{
if (!inst)
return;
- def = graph_get_defs (inst);
+ def = inst_get_defs (inst);
if (!def)
return;