Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
vidjil
vidjil
Commits
3136a15b
Commit
3136a15b
authored
Feb 21, 2015
by
Mathieu Giraud
Browse files
js/main.js: rename the global 'list' into 'list_clones'
There should be a better way to access this from segmenter.js
parent
cc199e62
Changes
2
Hide whitespace changes
Inline
Side-by-side
browser/js/main.js
View file @
3136a15b
...
...
@@ -73,7 +73,7 @@ window.onresize = function () { m.resize(); };
/* views
*/
var
graph
=
new
Graph
(
"
visu2
"
,
m
);
var
list
=
new
List
(
"
list
"
,
"
data
"
,
m
);
var
list
_clones
=
new
List
(
"
list
"
,
"
data
"
,
m
);
var
sp
=
new
ScatterPlot
(
"
visu
"
,
m
);
var
segment
=
new
Segment
(
"
bot-container
"
,
m
,
CGI_ADDRESS
);
var
builder
=
new
Builder
(
m
);
...
...
browser/js/segmenter.js
View file @
3136a15b
...
...
@@ -234,7 +234,7 @@ Segment.prototype = {
var
focus_selected
=
document
.
createElement
(
'
a
'
);
focus_selected
.
appendChild
(
document
.
createTextNode
(
"
(focus)
"
))
focus_selected
.
className
=
"
focus_selected
"
focus_selected
.
onclick
=
function
()
{
list
.
focus
()
}
focus_selected
.
onclick
=
function
()
{
list
_clones
.
focus
()
}
div_stats
.
appendChild
(
focus_selected
)
div
.
appendChild
(
div_stats
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment