Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
x3domlet
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Elphel
x3domlet
Commits
f781af46
Commit
f781af46
authored
Aug 28, 2017
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
selection highlighting
parent
45650e58
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
2 deletions
+33
-2
index.js
js/index.js
+33
-2
No files found.
js/index.js
View file @
f781af46
...
@@ -174,7 +174,7 @@ function popup_message(marker){
...
@@ -174,7 +174,7 @@ function popup_message(marker){
function
register_row_events
(
elem
){
function
register_row_events
(
elem
){
$
(
elem
).
on
(
"click"
,
function
(){
$
(
elem
).
on
(
"click"
,
function
(
e
){
if
(
!
Dragged
){
if
(
!
Dragged
){
...
@@ -203,12 +203,33 @@ function register_row_events(elem){
...
@@ -203,12 +203,33 @@ function register_row_events(elem){
markers
[
index
][
0
].
_popup
.
setContent
(
tmp
);
markers
[
index
][
0
].
_popup
.
setContent
(
tmp
);
markers
[
index
][
0
].
openPopup
();
markers
[
index
][
0
].
openPopup
();
$
(
".plist"
).
each
(
function
(
i
,
c
){
if
(
parseInt
(
$
(
c
).
attr
(
"index"
))
==
index
){
$
(
c
).
css
({
background
:
"rgba(220,220,230,1)"
});
$
(
c
).
addClass
(
'plist_selected'
);
}
});
$
(
".plist"
).
on
(
"mouseover"
,
function
(){
$
(
".plist"
).
on
(
"mouseover"
,
function
(){
$
(
".plist"
).
each
(
function
(
i
,
c
){
if
(
!
$
(
c
).
hasClass
(
'plist_selected'
)){
$
(
c
).
css
({
background
:
"white"
});
}
else
{
$
(
c
).
css
({
background
:
"rgba(220,220,230,1)"
});
}
});
/*
$(".plist").css({
$(".plist").css({
background: "white"
background: "white"
});
});
*/
$
(
this
).
css
({
$
(
this
).
css
({
background
:
"rgba(2
40,240,24
0,1)"
background
:
"rgba(2
30,230,23
0,1)"
});
});
var
j
=
$
(
this
).
attr
(
"index"
);
var
j
=
$
(
this
).
attr
(
"index"
);
...
@@ -216,6 +237,16 @@ function register_row_events(elem){
...
@@ -216,6 +237,16 @@ function register_row_events(elem){
});
});
$
(
".plist"
).
on
(
"mouseout"
,
function
(){
$
(
".plist"
).
each
(
function
(
i
,
c
){
if
(
!
$
(
c
).
hasClass
(
'plist_selected'
)){
$
(
c
).
css
({
background
:
"white"
});
}
else
{
$
(
c
).
css
({
background
:
"rgba(220,220,230,1)"
});
}
});
});
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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