mirror of https://github.com/jumpserver/jumpserver
修改move
parent
c08cee8052
commit
60cb5561f0
|
@ -1,7 +1,7 @@
|
|||
#coding: utf8
|
||||
|
||||
[base]
|
||||
ip = 192.168.173.129
|
||||
ip = 192.168.20.209
|
||||
port = 80
|
||||
key = 88aaaf7ffe3c6c04
|
||||
|
||||
|
|
|
@ -725,9 +725,10 @@ def user_add_adm(request):
|
|||
鎮ㄧ殑瑙掕壊锛 %s
|
||||
鎮ㄧ殑web鐧诲綍瀵嗙爜锛 %s
|
||||
鎮ㄧ殑ssh鐧诲綍瀵嗙爜锛 %s
|
||||
瀵嗛挜涓嬭浇鍦板潃锛 %s
|
||||
瀵嗛挜涓嬭浇鍦板潃锛 http://%s:%s/juser/down_key/?id=%s
|
||||
璇存槑锛 璇风櫥闄嗗悗鍐嶄笅杞藉瘑閽锛
|
||||
""" % (name, username, dept.name, '鏅氱敤鎴', password, ssh_key_pwd, ssh_key_pwd)
|
||||
""" % (name, username, dept.name, '鏅氱敤鎴',
|
||||
password, ssh_key_pwd, SEND_IP, SEND_PORT, user.id)
|
||||
print MAIL_FROM
|
||||
send_mail(mail_title, mail_msg, MAIL_FROM, [email], fail_silently=False)
|
||||
msg = u'娣诲姞鐢ㄦ埛 %s 鎴愬姛锛 鐢ㄦ埛瀵嗙爜宸插彂閫佸埌 %s 閭锛' % (username, email)
|
||||
|
|
|
@ -59,10 +59,13 @@ function GetTableDataBox() {
|
|||
return returnData;
|
||||
}
|
||||
|
||||
function move(from, to) {
|
||||
function move(from, to, from_o, to_o) {
|
||||
$("#" + from + " option").each(function () {
|
||||
if ($(this).prop("selected") == true) {
|
||||
$("#" + to).append(this);
|
||||
if( typeof from_o !== 'undefined'){
|
||||
$("#"+to_o).append($("#"+from_o +" option[value='"+this.value+"']"));
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
@ -76,12 +79,12 @@ function move_left(from, to) {
|
|||
});
|
||||
}
|
||||
|
||||
function move_all(from, to) {
|
||||
$("#" + from).children().each(function () {
|
||||
$("#" + to).append(this);
|
||||
});
|
||||
}
|
||||
|
||||
//function move_all(from, to) {
|
||||
// $("#" + from).children().each(function () {
|
||||
// $("#" + to).append(this);
|
||||
// });
|
||||
//}
|
||||
//
|
||||
|
||||
function selectAll(){
|
||||
var checklist = document.getElementsByName ("selected");
|
||||
|
@ -100,12 +103,12 @@ function selectAll(){
|
|||
|
||||
}
|
||||
|
||||
|
||||
function move_all(from, to){
|
||||
$("#"+from).children().each(function(){
|
||||
$("#"+to).append(this);
|
||||
});
|
||||
}
|
||||
//
|
||||
//function move_all(from, to){
|
||||
// $("#"+from).children().each(function(){
|
||||
// $("#"+to).append(this);
|
||||
// });
|
||||
//}
|
||||
|
||||
//function commit_select(form_array){
|
||||
// $('#{0} option'.format(form_array)).each(function(){
|
||||
|
|
|
@ -101,8 +101,8 @@ function search_ip(text, noselect, total){
|
|||
|
||||
<div class="col-sm-1">
|
||||
<div class="btn-group" style="margin-top: 60px;">
|
||||
<button type="button" class="btn btn-white" onclick="move('assets', 'asset_select' )"><i class="fa fa-chevron-right"></i></button>
|
||||
<button type="button" class="btn btn-white" onclick="move('asset_select', 'assets')"><i class="fa fa-chevron-left"></i> </button>
|
||||
<button type="button" class="btn btn-white" onclick="move('assets', 'asset_select', 'assets_total', 'asset_select_total' )"><i class="fa fa-chevron-right"></i></button>
|
||||
<button type="button" class="btn btn-white" onclick="move('asset_select', 'assets', 'asset_select_total', 'assets_total')"><i class="fa fa-chevron-left"></i> </button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
Loading鈥
Reference in New Issue