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
2cb6b15b
Commit
2cb6b15b
authored
Sep 05, 2016
by
ibuler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
set textarea rows
parent
2f5b7ad6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
7 deletions
+11
-7
_foot_js.html
apps/templates/_foot_js.html
+11
-7
No files found.
apps/templates/_foot_js.html
View file @
2cb6b15b
...
@@ -6,18 +6,19 @@
...
@@ -6,18 +6,19 @@
<script
src=
"{% static "
js
/
inspinia
.
js
"
%}"
></script>
<script
src=
"{% static "
js
/
inspinia
.
js
"
%}"
></script>
<script
src=
"{% static "
js
/
jumpserver
.
js
"
%}"
></script>
<script
src=
"{% static "
js
/
jumpserver
.
js
"
%}"
></script>
<!-- active menu -->
<script>
<script>
<!--
active
menu
-->
var
url_array
=
document
.
location
.
pathname
.
split
(
"/"
);
var
url_array
=
document
.
location
.
pathname
.
split
(
"/"
);
s1
=
url_array
[
1
];
app
=
url_array
[
1
];
s2
=
url_array
[
2
];
resource
=
url_array
[
2
];
if
(
s1
==
''
){
if
(
app
==
''
){
$
(
'#index'
).
addClass
(
'active'
)
$
(
'#index'
).
addClass
(
'active'
)
}
else
{
}
else
{
$
(
"#"
+
s1
).
addClass
(
'active'
);
$
(
"#"
+
app
).
addClass
(
'active'
);
$
(
'#'
+
s1
+
' #'
+
s2
).
addClass
(
'active'
);
$
(
'#'
+
app
+
' #'
+
resource
).
addClass
(
'active'
);
}
}
<!--
ajax
set
cookie
-->
function
getCookie
(
name
)
{
function
getCookie
(
name
)
{
var
cookieValue
=
null
;
var
cookieValue
=
null
;
if
(
document
.
cookie
&&
document
.
cookie
!==
''
)
{
if
(
document
.
cookie
&&
document
.
cookie
!==
''
)
{
...
@@ -46,8 +47,10 @@
...
@@ -46,8 +47,10 @@
beforeSend
:
function
(
xhr
,
settings
)
{
beforeSend
:
function
(
xhr
,
settings
)
{
if
(
!
csrfSafeMethod
(
settings
.
type
)
&&
!
this
.
crossDomain
)
{
if
(
!
csrfSafeMethod
(
settings
.
type
)
&&
!
this
.
crossDomain
)
{
xhr
.
setRequestHeader
(
"X-CSRFToken"
,
csrftoken
);
xhr
.
setRequestHeader
(
"X-CSRFToken"
,
csrftoken
);
{
#
xhr
.
setRequestHeader
(
"sessionid"
,
sessionid
);
#
}
}
}
}
}
});
});
<!--
textarea
rows
-->
$
(
'textarea'
).
attr
(
'rows'
,
5
)
</script>
</script>
\ No newline at end of file
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