diff --git a/metadata/dbms/editrecord.js b/metadata/dbms/editrecord.js
index b1d08ef..259d376 100644
--- a/metadata/dbms/editrecord.js
+++ b/metadata/dbms/editrecord.js
@@ -54,6 +54,7 @@ class EdtRec
this.pBarDiv.innerHTML='
';
let eDiv=document.getElementById('eDiv'+this.uid);
+ if(eDiv==null) return;
eDiv.appendChild(this.pBarDiv);
}
};
@@ -1050,6 +1051,7 @@ class EdtRec
let nodeType=findFirstNode(node, 'type');
prop_name=nodeType.getAttribute("pn"); //field name
prop=document.getElementById("prop_"+this.uid+"_"+prop_name);
+ if(prop==null) return;
let selector=null; //find what kind of object object
let nodeFilter=findFirstNode(this.nodeMetadata, 'properties');
diff --git a/metadata/dbms/tools.js b/metadata/dbms/tools.js
index d9bd1c8..5b022c0 100644
--- a/metadata/dbms/tools.js
+++ b/metadata/dbms/tools.js
@@ -209,6 +209,7 @@ function alert2(title,text,okFunc=null)
win.setContent(html);
let obj=document.getElementById(win.uid+'_close');
+ obj.focus();
if(obj!=null) obj.onclick=function(win,okFunc){return function(){ win.Close(); if(okFunc!=null) okFunc(); };}(win,okFunc);
win.setSize("300px","150px");
win.setCenter();
@@ -237,6 +238,7 @@ function confirm2(title,text,okFunc,cancelFunc)
win.setContent(html);
let btnO=document.getElementById(win.uid+'_ok');
+ btnO.focus();
if(btnO!=null){
btnO.onclick=function(win){
return function(){
@@ -1289,16 +1291,9 @@ class TWin
str+='';
*/
- let imgB='g_b.png';
- let imgX='x_w.png';
- if(document.body.getAttribute('data-theme')!='1') { //Если тёмный стиль
- imgB = 'g_w.gif';
- imgX = 'x_b.gif';
- }
-
let str='';
str+='';
- str+=' | | '+(this.disableClosing ? '' : ' ')+' |
| |
';
+ str+=' | | '+(this.disableClosing ? '' : '')+' |
| |
';
str+=' ';
str+='  | ';
str+=' | ';