fix: link popup timeout
This commit is contained in:
parent
b0c9881768
commit
b61688a486
4
main.js
4
main.js
|
@ -39,6 +39,7 @@ var lastsaved = "";
|
|||
var pending = false;
|
||||
var settings = null;
|
||||
var tags = null;
|
||||
var linkpopupid = null;
|
||||
|
||||
var stat =
|
||||
{
|
||||
|
@ -825,7 +826,8 @@ function showlinkdialog(link)
|
|||
|
||||
div.appendChild(a);
|
||||
|
||||
setTimeout(removelinkdialog, 3000);
|
||||
clearTimeout(linkpopupid);
|
||||
linkpopupid = setTimeout(removelinkdialog, 3000);
|
||||
notepage.appendChild(div);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue