Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
J
jumpserver
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
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
ops
jumpserver
Commits
fc2a4462
Commit
fc2a4462
authored
May 25, 2018
by
ibuler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Bugfix] 修复右击位置不对的bug
parent
9b4b9e69
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
asset_list.html
apps/assets/templates/assets/asset_list.html
+7
-4
No files found.
apps/assets/templates/assets/asset_list.html
View file @
fc2a4462
...
@@ -17,11 +17,12 @@
...
@@ -17,11 +17,12 @@
position
:
absolute
;
position
:
absolute
;
visibility
:
hidden
;
visibility
:
hidden
;
text-align
:
left
;
text-align
:
left
;
top
:
100%
;
{#
top
:
100%
;
#
}
top
:
0
;
left
:
0
;
left
:
0
;
z-index
:
1000
;
z-index
:
1000
;
float
:
left
;
{
#
float
:
left
;
#
}
padding
:
5px
0
;
padding
:
0
0
;
margin
:
2px
0
0
;
margin
:
2px
0
0
;
list-style
:
none
;
list-style
:
none
;
background-clip
:
padding-box
;
background-clip
:
padding-box
;
...
@@ -29,7 +30,7 @@
...
@@ -29,7 +30,7 @@
div
#rMenu
li
{
div
#rMenu
li
{
margin
:
1px
0
;
margin
:
1px
0
;
cursor
:
pointer
;
cursor
:
pointer
;
{#
list-style
:
none
outside
none
;
#
}
list-style
:
none
outside
none
;
}
}
.dropdown
a
:hover
{
.dropdown
a
:hover
{
background-color
:
#f1f1f1
background-color
:
#f1f1f1
...
@@ -266,6 +267,8 @@ function OnRightClick(event, treeId, treeNode) {
...
@@ -266,6 +267,8 @@ function OnRightClick(event, treeId, treeNode) {
function
showRMenu
(
type
,
x
,
y
)
{
function
showRMenu
(
type
,
x
,
y
)
{
$
(
"#rMenu ul"
).
show
();
$
(
"#rMenu ul"
).
show
();
x
-=
220
;
x
-=
220
;
x
+=
document
.
body
.
scrollLeft
;
y
+=
document
.
body
.
scrollTop
+
document
.
documentElement
.
scrollTop
;
rMenu
.
css
({
"top"
:
y
+
"px"
,
"left"
:
x
+
"px"
,
"visibility"
:
"visible"
});
rMenu
.
css
({
"top"
:
y
+
"px"
,
"left"
:
x
+
"px"
,
"visibility"
:
"visible"
});
$
(
"body"
).
bind
(
"mousedown"
,
onBodyMouseDown
);
$
(
"body"
).
bind
(
"mousedown"
,
onBodyMouseDown
);
...
...
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