0
0
mirror of https://github.com/Doodle3D/doodle3d-connect.git synced 2024-12-26 02:23:48 +01:00

added printer title to status page

This commit is contained in:
Rick Companje 2017-07-13 18:04:12 +02:00
parent 882057e300
commit e228f1ec42
2 changed files with 7 additions and 0 deletions

View File

@ -190,8 +190,11 @@
//request filename only once //request filename only once
if ($("#infoPrintingFile").text()==="") { if ($("#infoPrintingFile").text()==="") {
_serverAPI.fetchHeader(uuid,function(successData) { _serverAPI.fetchHeader(uuid,function(successData) {
console.log("infoPrintingFile fetchHeader",successData);
$("#liPrintingFile").show(); $("#liPrintingFile").show();
$("#liPrinterType").show();
$("#infoPrintingFile").text(successData.name); $("#infoPrintingFile").text(successData.name);
$("#infoPrinterType").text(successData.printer.title);
},function(failData) { },function(failData) {
$("#liPrintingFile").hide(); $("#liPrintingFile").hide();
}); });

View File

@ -152,6 +152,10 @@
WiFi-Box WiFi-Box
<span id="infoWiFiBox" class="ui-li-count"></span> <span id="infoWiFiBox" class="ui-li-count"></span>
</li> </li>
<li id="liPrinterType" data-icon="false">
Printer
<span id="infoPrinterType" class="ui-li-count"></span>
</li>
<li id="liPrinterStatus" data-icon="false"> <li id="liPrinterStatus" data-icon="false">
Status Status
<span id="infoPrinterStatus" class="ui-li-count"></span> <span id="infoPrinterStatus" class="ui-li-count"></span>