From 4be7982863fcce6b9663d35f1996fe73af8764ee Mon Sep 17 00:00:00 2001 From: olevole Date: Mon, 9 Nov 2020 20:03:27 +0000 Subject: [PATCH] sync code --- php/clonos.php | 2 +- public/js/clonos.js | 10 +++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/php/clonos.php b/php/clonos.php index fdc67c90..6d8e5530 100644 --- a/php/clonos.php +++ b/php/clonos.php @@ -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'].' ':''; diff --git a/public/js/clonos.js b/public/js/clonos.js index 1b9f8183..69436c69 100644 --- a/public/js/clonos.js +++ b/public/js/clonos.js @@ -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+='
'+this.translate(n)+'
'+data[n]+'
'; } $('dl#summaryInfo').html(dl); - } + }, + clearSummaryInfo:function() + { + $('dl#summaryInfo').html(''); + }, }