projects
/
collection4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
48c757c
)
share/collection.js: Pass the instance selector to the "graph_def_json" action.
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
3ee5ccc
..
c720086
100644
(file)
--- a/
share/collection.js
+++ b/
share/collection.js
@@
-54,10
+54,10
@@
function value_to_string (value) /* {{{ */
}
} /* }}} function value_to_string */
}
} /* }}} 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)
var selector = {};
if (graph_selector.host == inst_selector.host)
@@
-126,11
+126,11
@@
function ident_clone (ident) /* {{{ */
return (ret);
} /* }}} ident_clone */
return (ret);
} /* }}} ident_clone */
-function
graph_get_defs (graph
) /* {{{ */
+function
inst_get_defs (inst
) /* {{{ */
{
{
- if (!
graph
.def)
+ if (!
inst
.def)
{
{
- var params = i
dent_clone (graph.graph_selector
);
+ var params = i
nstance_get_params (inst
);
params.action = "graph_def_json";
$.ajax({
params.action = "graph_def_json";
$.ajax({
@@
-143,14
+143,14
@@
function graph_get_defs (graph) /* {{{ */
if (!data)
return;
if (!data)
return;
-
graph
.def = data;
+
inst
.def = data;
}});
}
}});
}
- if (
graph
.def)
- return (
graph
.def);
+ if (
inst
.def)
+ return (
inst
.def);
return;
return;
-} /* }}}
graph
_get_defs */
+} /* }}}
inst
_get_defs */
function ident_matches (selector, ident) /* {{{ */
{
function ident_matches (selector, ident) /* {{{ */
{
@@
-307,7
+307,7
@@
function json_graph_update (index) /* {{{ */
if (!inst)
return;
if (!inst)
return;
- def =
graph
_get_defs (inst);
+ def =
inst
_get_defs (inst);
if (!def)
return;
if (!def)
return;