make Super page use API to get Admin list and System Logs+

auto-build-api-doc-with-code
Moe 2021-04-01 15:50:02 -07:00
parent 2ae9bcaaf0
commit 76f02de24e
1 changed files with 2 additions and 2 deletions

View File

@ -224,7 +224,7 @@ $.aN.f.submit(function(e){
//client side email check
$.aN.e.on('change','[name="mail"]',function(){
var thisVal = $(this).val()
$.each(users,function(n,user){
$.each(loadedUsers,function(n,user){
if($.aN.selected && user.ke !== $.aN.selected.ke && thisVal.toLowerCase() === user.mail.toLowerCase()){
new PNotify({text:lang['Email address is in use.'],type:'error'})
}
@ -233,7 +233,7 @@ $.aN.e.on('change','[name="mail"]',function(){
//client side group key check
$.aN.e.on('change','[name="ke"]',function(){
var thisVal = $(this).val()
$.each(users,function(n,user){
$.each(loadedUsers,function(n,user){
if(!$.aN.modeIsEdit() && user.ke === thisVal){
new PNotify({text:lang['Group Key is in use.'] + ' ' + lang['Create Sub-Accounts at /admin'],type:'error'})
}