Skip to content

Commit 9b0ae00

Browse files
committed
Fix bug with IE11
add cache control to none, and do not display overflow, in addition it need to adjust security settings to allow to get updates and send commands
1 parent 9b7df11 commit 9b0ae00

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

esp8266/data/printer.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ $INCLUDE[header.inc]$
1313
</td></tr></table></div></td></tr>
1414
<tr><td style="padding:0px;"><div id="Bed" style="visibility:hidden;height:0px;">
1515
<table><tr><td><label>Bed:</label></td>
16-
<td id="data_bed"></td><td>0<input id="rangeinputbed" type="range" min=0 max=130 onchange="Updatenumber('bed');">130</td>
16+
<td id="data_bed" style="overflow: hidden;"></td><td>0<input id="rangeinputbed" type="range" min=0 max=130 onchange="Updatenumber('bed');">130</td>
1717
<td><input class="form-control" id="numberinputbed"type="number" min=0 max=270 step=1 value=0 onchange="Updaterange('bed');"></td><td>&#176;C
1818
<input type="button" class="btn btn-primary" value="Set" onclick="SendValue( 'M140 S', 'bed');">
1919
</td></tr></table></div></td></tr>

esp8266/webinterface.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2561,6 +2561,7 @@ void handle_web_interface_status()
25612561
}
25622562
buffer2send+="]";
25632563
buffer2send+="}";
2564+
web_interface->WebServer.sendHeader("Cache-Control", "no-cache");
25642565
web_interface->WebServer.send(200, "application/json",buffer2send);
25652566
}
25662567

@@ -2651,6 +2652,7 @@ void handleUpdate(){
26512652
jsonfile+=intTostr(web_interface->_upload_status);
26522653
jsonfile+="\"}";
26532654
//send status
2655+
web_interface->WebServer.sendHeader("Cache-Control", "no-cache");
26542656
web_interface->WebServer.send(200, "application/json", jsonfile);
26552657
//if success restart
26562658
if (web_interface->_upload_status==UPLOAD_STATUS_SUCCESSFUL)web_interface->restartmodule=true;
@@ -2705,6 +2707,7 @@ void handleFileList() {
27052707
jsonfile+="\"";
27062708
jsonfile+="}";
27072709
path = "";
2710+
web_interface->WebServer.sendHeader("Cache-Control", "no-cache");
27082711
web_interface->WebServer.send(200, "application/json", jsonfile);
27092712
}
27102713

@@ -2722,6 +2725,7 @@ void handleSDFileList() {
27222725
jsonfile+="\"}";
27232726
}
27242727
jsonfile+="]";
2728+
web_interface->WebServer.sendHeader("Cache-Control", "no-cache");
27252729
web_interface->WebServer.send(200, "application/json", jsonfile);
27262730
}
27272731

0 commit comments

Comments
 (0)