Skip to content

Commit d8a61e2

Browse files
committed
Fix WebIf: Removed duplicate variables
1 parent d678100 commit d8a61e2

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

web/config.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
<script src="assets/js/bootstrap.min.js"></script>
1616
<script src="assets/js/addtableentry.js"></script>
1717
<script>
18-
var filename;
1918
var autoload = 1;
2019
var content;
2120
var once = 0;
@@ -47,7 +46,7 @@
4746
return page;
4847
}
4948
function updatePage() {
50-
loadXMLDoc(filename);
49+
loadXMLDoc("SatPI.xml");
5150
}
5251
// function called when xml is loaded
5352
function xmlloaded(xml) {
@@ -98,7 +97,6 @@
9897
document.getElementById("footer").innerHTML = buildfooter();
9998
setMenuItemActive("config");
10099

101-
filename = "SatPI.xml";
102100
content = "general";
103101
updatePage();
104102

web/frontendoverview.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
<script src="assets/js/bootstrap.min.js"></script>
1616
<script src="assets/js/addtableentry.js"></script>
1717
<script>
18-
var filename;
1918
var autoload = 1;
2019
var xmlLoaded;
2120

@@ -47,7 +46,7 @@
4746
}
4847

4948
function updatePage() {
50-
loadXMLDoc(filename);
49+
loadXMLDoc("SatPI.xml");
5150
}
5251

5352
// function called when xml is loaded
@@ -89,7 +88,6 @@
8988
document.getElementById("footer").innerHTML = buildfooter();
9089
setMenuItemActive("frontendoverview");
9190

92-
filename = "SatPI.xml";
9391
updatePage();
9492

9593
// Call the ajax refresh each refresh_time seconds

0 commit comments

Comments
 (0)