diff --git a/public/app-runtime.js b/public/app-runtime.js index 51510dd..e84e4c8 100644 --- a/public/app-runtime.js +++ b/public/app-runtime.js @@ -429,7 +429,7 @@ window.SUN_LEGACY_CATALOG_V175=[]; function renderOrderLines(){ if(!$('lines'))return; if(!(draft.lines||[]).length){$('lines').innerHTML='
Выберите позиции из каталога.
';return} - const rows=draft.lines.map((line,index)=>{const item=boxes.find(x=>String(x.id)===String(line.id));if(!item)return'';const qty=Math.max(1,Number(line.qty||1)),price=lineUnitPrice(line),isBox=[0,5,6].includes(Number(item.category||0));return `Ничего не найдено.
'; + $('managerList').innerHTML=items.length?items.map(item=>``).join(''):'Ничего не найдено.
'; } window.openManager=()=>{managerQuery='';ensureManagerToolbar();if($('sunManagerSearch'))$('sunManagerSearch').value='';renderManagerV5();window.modal?.('manager');}; window.editBox=id=>{ diff --git a/public/core/sun-safe.js b/public/core/sun-safe.js index 08f6c39..04d7d91 100644 --- a/public/core/sun-safe.js +++ b/public/core/sun-safe.js @@ -5,6 +5,7 @@ })[ch]); const escapeAttr=escapeHTML; const idToken=value=>String(value??'').replace(/[^a-zA-Z0-9_-]/g,''); + const jsArg=value=>escapeHTML(JSON.stringify(String(value??''))); // Existing trial databases and saved offers still reference the PNG originals. // Resolve only our ten bundled demo assets; never rewrite customer photos. const demoNames='berry-dessert|bruschetta-tomato|caprese|cheese-fruit|chicken-sandwich|meat-assortment|mushroom-tartlet|salmon-cream|turkey-wrap|vegetables-hummus'; @@ -28,7 +29,7 @@ if(reference&&reference.parentNode===parent)parent.insertBefore(node,reference);else parent.appendChild(node); return node; }; - window.SunSafe=Object.freeze({escapeHTML,escapeAttr,idToken,safeImageSrc,imageAssetSrc,setText,insertBefore}); + window.SunSafe=Object.freeze({escapeHTML,escapeAttr,idToken,jsArg,safeImageSrc,imageAssetSrc,setText,insertBefore}); // Small bootstrap for account/profile UI. Keeping it here makes the account // center available on every Caterium screen without touching the legacy monolith. diff --git a/public/index.html b/public/index.html index a421101..03bfc3f 100644 --- a/public/index.html +++ b/public/index.html @@ -71,7 +71,7 @@ button{touch-action:manipulation} #sunGlobalSearchBtn kbd{display:none!important} #sunSyncSettingsCard>div[style*="grid-template-columns"]{grid-template-columns:1fr!important} -}Стоимость позиций0 ₽
Предоплата0 ₽
К оплате0 ₽
Нажмите «Изменить», чтобы открыть заказ. Сумма, предоплата и остаток сохраняются вместе с заказом.
В этой версии каталог продуктов пополняется из составов боксов. Остатки и цены добавим следующим шагом.