alert ok funktion
This commit is contained in:
@ -186,7 +186,7 @@ function loadContent(url,obj)
|
||||
}
|
||||
|
||||
//Вывести текст поверх окон с кнопочкой OK
|
||||
function alert2(title,text)
|
||||
function alert2(title,text,okFunc=null)
|
||||
{
|
||||
let win=new TWin(true);
|
||||
win.BuildGUI(10,10);
|
||||
@ -204,7 +204,7 @@ function alert2(title,text)
|
||||
|
||||
win.setContent(html);
|
||||
let obj=document.getElementById(win.uid+'_close');
|
||||
if(obj!=null) obj.onclick=function(win){return function(){ win.Close(); };}(win);
|
||||
if(obj!=null) obj.onclick=function(win,okFunc){return function(){ win.Close(); if(okFunc!=null) okFunc(); };}(win,okFunc);
|
||||
win.setSize("300px","150px");
|
||||
win.setCenter();
|
||||
win.shadow=true;
|
||||
|
||||
Reference in New Issue
Block a user