sync code

This commit is contained in:
olevole
2020-11-09 20:03:27 +00:00
parent 3e47ff1bbd
commit 4be7982863
2 changed files with 10 additions and 2 deletions

View File

@@ -1435,7 +1435,7 @@ class ClonOS {
//$nres=$db->selectAssoc('SELECT name FROM authkey WHERE idx='.$key_id); // Ok, casted as int above.
//if($nres['name']!==false) $key_name=$nres['name'];
$nres=$db->selectAssoc('SELECT authkey FROM authkey WHERE idx='.$key_id);
if($nres['authkey']!==false) $authkey=$nres['authkey'];
if($nres['authkey']!==false) $authkey=$nres['authkey']; else $authkey='';
//var_dump($nres);exit;
$user_pw=(!empty($form['user_password']))?' ci_user_pw_user='.$form['user_password'].' ':'';

View File

@@ -2152,9 +2152,11 @@ var clonos={
{
$('.tsimple tbody').empty();
//$('#cdown #cinfo .left').html('');
this.clearSummaryInfo();
$('div.main').removeClass('asplit');
},
ddmenu_interval:null,
cnt_mode:'new',
DDMenuShow:function(id,td,tr,event)
@@ -3227,6 +3229,7 @@ var clonos={
getSummaryInfo:function(jname,mode)
{
this.clearSummaryInfo();
this.openedJailSummary=jname;
var posts=[{'name':'jname','value':jname},{'name':'mode','value':mode}];
this.loadData('getSummaryInfo',$.proxy(this.onGetSummaryInfo,this),posts);
@@ -3259,10 +3262,15 @@ var clonos={
var dl='';
for(n in data)
{
if(n=='authorized') continue;
dl+='<dt>'+this.translate(n)+'</dt><dd>'+data[n]+'<dd>';
}
$('dl#summaryInfo').html(dl);
}
},
clearSummaryInfo:function()
{
$('dl#summaryInfo').html('');
},
}