From e228f1ec428a602d193e53d8336a988491c34721 Mon Sep 17 00:00:00 2001 From: Rick Companje Date: Thu, 13 Jul 2017 18:04:12 +0200 Subject: [PATCH] added printer title to status page --- js/ControlPage.js | 3 +++ www/index.html | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/js/ControlPage.js b/js/ControlPage.js index d35f7e5..5e1a2e2 100644 --- a/js/ControlPage.js +++ b/js/ControlPage.js @@ -190,8 +190,11 @@ //request filename only once if ($("#infoPrintingFile").text()==="") { _serverAPI.fetchHeader(uuid,function(successData) { + console.log("infoPrintingFile fetchHeader",successData); $("#liPrintingFile").show(); + $("#liPrinterType").show(); $("#infoPrintingFile").text(successData.name); + $("#infoPrinterType").text(successData.printer.title); },function(failData) { $("#liPrintingFile").hide(); }); diff --git a/www/index.html b/www/index.html index 4fbb166..2c1c82b 100644 --- a/www/index.html +++ b/www/index.html @@ -152,6 +152,10 @@ WiFi-Box +
  • + Printer + +
  • Status