Toggle navigation
Toggle navigation
This project
Loading...
Sign in
홍길동
/
onos
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
Simon Hunt
2014-11-12 13:27:18 -0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
c31d569493d23cfebbe7306d059f6fc7c97338eb
c31d5694
1 parent
1d7dfb00
GUI -- mulitselect WIP.
Change-Id: I4b0646b5372c8dc389662cc629affb23781e0672
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
web/gui/src/main/webapp/topo2.js
web/gui/src/main/webapp/topo2.js
View file @
c31d569
...
...
@@ -1149,7 +1149,7 @@
deselectAll
();
}
selections
[
obj
.
id
]
=
{
obj
:
obj
,
el
:
el
};
selections
[
obj
.
id
]
=
{
obj
:
obj
,
el
:
el
};
selectOrder
.
push
(
obj
.
id
);
n
.
classed
(
'selected'
,
true
);
...
...
@@ -1157,12 +1157,16 @@
}
function
deselectObject
(
id
)
{
var
obj
=
selections
[
id
];
var
obj
=
selections
[
id
],
idx
;
if
(
obj
)
{
d3
.
select
(
obj
.
el
).
classed
(
'selected'
,
false
);
delete
selections
[
id
];
idx
=
$
.
inArray
(
id
,
selectOrder
);
if
(
idx
>=
0
)
{
selectOrder
.
splice
(
idx
,
1
);
}
}
updateDetailPane
();
}
function
deselectAll
()
{
...
...
Please
register
or
login
to post a comment