yWeb: move Y_NI_Tools() away from Y_NIlib.js; drop Y_NIlib.js

Origin commit data
------------------
Branch: ni/coolstream
Commit: 7b0e62f4e2
Author: vanhofen <vanhofen@gmx.de>
Date: 2023-02-21 (Tue, 21 Feb 2023)

Origin message was:
------------------
- yWeb: move Y_NI_Tools() away from Y_NIlib.js; drop Y_NIlib.js

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2023-02-21 22:52:10 +01:00
parent 1f7890de40
commit ddcb4255a5
4 changed files with 14 additions and 19 deletions

View File

@@ -553,3 +553,15 @@ function goPort(_port)
var host = host.substring(0, pos1 + 2 + pos2);
window.open(host + ":" + _port, "_blank");
}
function Y_NI_Tools(_cmd, _tout){
var out = document.getElementById("out");
if (out)
out.innerHTML = "";
show_waitbox(true);
goUrl("/control/exec?Y_NI_Tools&" + _cmd);
if (typeof(_tout) == "undefined")
show_waitbox(false);
else
window.setTimeout("document.location.reload()", _tout);
}