Merge branch 'master' of https://git.dirt.kz/igor/Metadata_PHP
This commit is contained in:
@ -52,26 +52,7 @@ class SRec
|
||||
this.hideProgressBar();
|
||||
|
||||
if(node.errorCode>0) {
|
||||
let fullText = node.errorMessage;
|
||||
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);
|
||||
}
|
||||
alert2(trt('Alert'), node.errorMessage);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user