diff --git a/data/y-web/Makefile.am b/data/y-web/Makefile.am index 7b5166372..5ac57ed7b 100644 --- a/data/y-web/Makefile.am +++ b/data/y-web/Makefile.am @@ -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 \ diff --git a/data/y-web/Y_Baselib.js b/data/y-web/Y_Baselib.js index 887e87a80..6b3d3572d 100644 --- a/data/y-web/Y_Baselib.js +++ b/data/y-web/Y_Baselib.js @@ -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); +} diff --git a/data/y-web/Y_NIlib.js b/data/y-web/Y_NIlib.js deleted file mode 100644 index 952860fea..000000000 --- a/data/y-web/Y_NIlib.js +++ /dev/null @@ -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); - } -} diff --git a/data/y-web/Y_Version.txt b/data/y-web/Y_Version.txt index 8dc034439..1a497f6c6 100644 --- a/data/y-web/Y_Version.txt +++ b/data/y-web/Y_Version.txt @@ -1,3 +1,3 @@ -version=3.0.41 +version=3.0.42 date=21.02.2023 info=NI-Neutrino-Webinterface