+ Подробные коменты в не [[]]

This commit is contained in:
2022-08-19 17:12:00 +06:00
parent b0ddda219f
commit d46b696e6d
10 changed files with 279 additions and 96 deletions

View File

@ -1,4 +1,4 @@
//Copyright (C) 2008 Ivanov I.M. irigm@mail.ru +77051809750
//Copyright (C) 2008 Ivanov I.M. ivanov.i@istt.kz
//For find non english chars: [^\x00-\x7F]+
function callWindow(uid,id,i)
@ -50,9 +50,29 @@ class SRec
this.hideProgressBar();
this.xmldoc=node.ownerDocument; //xmldoc;
if (fn==-1) //Information menu
if (fn==-1) //Information alert
{
alert2(trt('Alert'),findFirstNode(node,'#cdata-section').nodeValue);
let fullText = findFirstNode(node,'#cdata-section').nodeValue;
let smallText = '';
let pos1=fullText.indexOf('[[');
let pos2=fullText.indexOf(']]');
if(pos1>0 && pos2>0 && pos1<pos2) smallText=fullText.substring(pos1+2, pos2);
if(fullText.indexOf("id456[[")>=0){ //Если есть идентификатор того что это перезапись
let okFunc=()=>{
this.setValue('seq',0);
this.sendData(); //Применить ещё раз
};
if (smallText != '')
confirm2(trt('Warning'),smallText, fullText, okFunc, null);
else
confirm2(trt('Warning'),smallText, '', okFunc, null);
}else {
if (smallText != '')
alert2(trt('Alert'), smallText, fullText);
else
alert2(trt('Alert'), fullText);
}
}else
if (fn==0)
{
@ -1606,7 +1626,7 @@ class SRec
//We run through the marked records and request their removal
deleteRecord(recordid)
{
confirm2(trt('Warning'),trt("Are_you_sure_you_want_to_delete_the_entries")+"<br>"
confirm2(trt('Warning'),trt("Are_you_sure_you_want_to_delete_the_entries")+"<br>",''
,()=>{
for(let i=0;i<this.masChBox.length;i++)
{