Обновление: модули вне лицензии пропускаются с пояснением «не входит в лицензию — свяжитесь с ZETIT», а не срывают обновление
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014FsEKyJrYF69Cj9ZXzFLRi
This commit is contained in:
@@ -599,7 +599,7 @@ label { font-size:13px; font-weight:500; }
|
||||
doneEl.style.display='block';
|
||||
}
|
||||
function run(form){
|
||||
var startVer=null, target='', seenActive=false, postDone=false, lost=false, t0=Date.now(), seq0=null;
|
||||
var note='', startVer=null, target='', seenActive=false, postDone=false, lost=false, t0=Date.now(), seq0=null;
|
||||
show(); stageEl.textContent='Отправка запроса…'; bar.style.width='3%'; detail.textContent='';
|
||||
var xhr=new XMLHttpRequest(); xhr.open('POST', form.action);
|
||||
var file=form.querySelector('input[type=file]');
|
||||
@@ -613,8 +613,9 @@ label { font-size:13px; font-weight:500; }
|
||||
fetch('/admin/setup/update/progress',{cache:'no-store',credentials:'same-origin'}).then(function(r){ if(!r.ok) throw 0; return r.json(); }).then(function(p){
|
||||
if(startVer===null){ startVer=p.version; seq0=p.seq; }
|
||||
if(p.target) target=p.target;
|
||||
if(p.note) note=p.note;
|
||||
if(lost){ // bj вернулся после перезапуска
|
||||
if(!target || p.version===target || p.version!==startVer){ finish('Готово: bj перезапущен, работает версия '+p.version+'.', true); detail.textContent=''; return; }
|
||||
if(!target || p.version===target || p.version!==startVer){ finish('Готово: bj перезапущен, работает версия '+p.version+'.', true); detail.textContent=note ? note.charAt(0).toUpperCase()+note.slice(1)+'.' : ''; return; }
|
||||
}
|
||||
var fresh = p.seq!==seq0 || seenActive || postDone;
|
||||
if(p.active){ seenActive=true;
|
||||
|
||||
Reference in New Issue
Block a user