mirror of https://github.com/jumpserver/jumpserver
修改script位置
parent
3d1df73a99
commit
70fe42f359
|
@ -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);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,44 +1,13 @@
|
||||||
<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>
|
||||||
|
|
Loading鈥
Reference in New Issue