diff --git a/index.html b/index.html index a2693c0..5007601 100644 --- a/index.html +++ b/index.html @@ -1017,6 +1017,10 @@ function doLogin(){ var e=document.getElementById("lem").value.trim().toLowerCase(); var k=e.split("@")[0]; var u=USR[k]; + if(!u){ + var ex=localStorage.getItem("ext_users");if(ex){try{var eu=JSON.parse(ex);if(eu[k])u=eu[k];if(!u&&eu[e])u=eu[e]}catch(e){}} + } + if(!u)u=USR[e]; if(u){ cu={n:u.n,bg:u.bg,role:u.role!==undefined?u.role:(u.bg===0?0:1)}; localStorage.setItem("su",JSON.stringify(cu)); @@ -1221,11 +1225,11 @@ function openEv(id,subIdx){ h+="
AI-анализ: "+esc(e.ai||"\u2014")+"
"; h+="
Отчётность:
"; h+="
"; - h+="Количество: "; var now=new Date(); var curMonth=now.getMonth(); var savedMonth=localStorage.getItem("evmonth_"+e.id); var selMonth=savedMonth!==null?parseInt(savedMonth,10):curMonth; + h+="Количество: "; h+="Месяц:
"; - h+="
"; + h+="
"; h+="
Файлы:"; if(cu&&cu.bg===0){ for(var bi=0;bi +