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
70fe42f3
Commit
70fe42f3
authored
Feb 01, 2015
by
guanghongwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
scriptλ
parent
3d1df73a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
38 deletions
+39
-38
base.js
static/js/base.js
+32
-0
head_script.html
templates/head_script.html
+7
-38
No files found.
static/js/base.js
View file @
70fe42f3
...
@@ -59,3 +59,35 @@ function GetTableDataBox() {
...
@@ -59,3 +59,35 @@ function GetTableDataBox() {
return
returnData
;
return
returnData
;
}
}
function
selectAll
(){
var
checklist
=
document
.
getElementsByName
(
"selected"
);
if
(
document
.
getElementById
(
"select_all"
).
checked
)
{
for
(
var
i
=
0
;
i
<
checklist
.
length
;
i
++
)
{
checklist
[
i
].
checked
=
1
;
}
}
else
{
for
(
var
j
=
0
;
j
<
checklist
.
length
;
j
++
)
{
checklist
[
j
].
checked
=
0
;
}
}
}
function
move
(
from
,
to
)
{
$
(
"#"
+
from
+
" option"
).
each
(
function
(){
if
(
$
(
this
).
prop
(
"selected"
)
==
true
)
{
$
(
"#"
+
to
).
append
(
this
);
}
});
}
function
move_all
(
from
,
to
){
$
(
"#"
+
from
).
children
().
each
(
function
(){
$
(
"#"
+
to
).
append
(
this
);
});
}
templates/head_script.html
View file @
70fe42f3
<script
src=
"/static/js/jquery-2.1.1.js"
></script>
<script
src=
"/static/js/jquery-2.1.1.js"
></script>
<script
src=
"/static/js/bootstrap.min.js"
></script>
<script
src=
"/static/js/bootstrap.min.js"
></script>
<script
src=
"/static/js/base.js"
></script>
<script
src=
"/static/js/base.js"
></script>
<!--<script>-->
<script>
<!--$(document).ready(function(){-->
{
#
$
(
document
).
ready
(
function
(){
#
}
<!--$('.i-checks').iCheck({-->
{
#
$
(
'.i-checks'
).
iCheck
({
#
}
<!--checkboxClass: 'icheckbox_square-green',-->
{
#
checkboxClass
:
'icheckbox_square-green'
,
#
}
<!--radioClass: 'iradio_square-green'-->
{
#
radioClass
:
'iradio_square-green'
#
}
<!--});-->
{
#
});
#
}
<!--});-->
{
#
});
#
}
<!--function selectAll(){-->
<!--var checklist = document.getElementsByName ("selected");-->
<!--if(document.getElementById("select_all").checked)-->
<!--{-->
<!--for(var i=0;i<checklist.length;i++)-->
<!--{-->
<!--checklist[i].checked = 1;-->
<!--}-->
<!--}else{-->
<!--for(var j=0;j<checklist.length;j++)-->
<!--{-->
<!--checklist[j].checked = 0;-->
<!--}-->
<!--}-->
<!--}-->
<!--function move(from, to) {-->
<!--$("#"+from+" option").each(function(){-->
<!--if ( $(this).prop("selected") == true ) {-->
<!--$("#"+to).append(this);-->
<!--}-->
<!--});-->
<!--}-->
<!--function move_all(from, to){-->
<!--$("#"+from).children().each(function(){-->
<!--$("#"+to).append(this);-->
<!--});-->
<!--}-->
</script>
</script>
...
...
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