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

@@ -78,8 +78,7 @@ install_DATA = extensions.txt \
Y_yWeb.js
# NI-yWeb
install_DATA += Y_NIlib.js \
Y_NI_About.yhtm \
install_DATA += Y_NI_About.yhtm \
Y_NI_Camd-control.yhtm \
Y_NI_Infoicons-control.yhtm \
Y_NI_m3uConInfo.yhtm \

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);
}

View File

@@ -1,16 +0,0 @@
/* yWeb NIlib by NI-Team
*/
function Y_NI_Tools(_cmd, _tout){
$("out").update("");
show_waitbox(true);
goUrl("/control/exec?Y_NI_Tools&" + _cmd);
if (typeof(_tout) == "undefined")
{
show_waitbox(false);
}
else
{
window.setTimeout("document.location.reload()", _tout);
}
}

View File

@@ -1,3 +1,3 @@
version=3.0.41
version=3.0.42
date=21.02.2023
info=NI-Neutrino-Webinterface