mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-26 23:13:00 +02:00
yWeb: replace XMLHttpRequest() by jquery-function
Origin commit data
------------------
Branch: ni/coolstream
Commit: ab8d666bf9
Author: vanhofen <vanhofen@gmx.de>
Date: 2023-02-18 (Sat, 18 Feb 2023)
Origin message was:
------------------
- yWeb: replace XMLHttpRequest() by jquery-function
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -1,3 +1,3 @@
|
||||
version=3.0.20
|
||||
date=14.02.2023
|
||||
version=3.0.21
|
||||
date=17.02.2023
|
||||
info=NI-Neutrino-Webinterface
|
||||
|
@@ -4,13 +4,12 @@
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<title>yWeb</title>
|
||||
<script type="text/javascript" src="/jquery/jquery.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
//<![CDATA[
|
||||
var xmlhttp = new XMLHttpRequest();
|
||||
xmlhttp.open("GET", "/etc/hostname", false);
|
||||
xmlhttp.send();
|
||||
if (xmlhttp.status == 200)
|
||||
document.title = xmlhttp.responseText;
|
||||
jQuery.get("/etc/hostname", function(data) {
|
||||
jQuery('html head').find('title').text(data);
|
||||
});
|
||||
//]]>
|
||||
</script>
|
||||
</head>
|
||||
|
Reference in New Issue
Block a user