diff --git a/www/views/zeroconf.html b/www/views/zeroconf.html
index 2bd8027..6ee01ad 100644
--- a/www/views/zeroconf.html
+++ b/www/views/zeroconf.html
@@ -1,10 +1,13 @@
-
This tool scans for Business Apps servers on the local network. Tap on a server to view it in a web browser.
+This tool scans for Business Apps servers on the local network. Tap on a server to view it in a web browser. Note: Cloud installations will not appear here.
Searching...
+
+ No services found on local network.
+
Rescan
@@ -16,6 +19,7 @@
function scanZeroconf() {
$("#searching-message").css('display', 'block');
+ $("#not-found-message").css('display', 'none');
zeroconf.watch('_http._tcp.', 'local.', function (result) {
var action = result.action;
var service = result.service;
@@ -32,9 +36,9 @@
+ ipaddr
+ (service.port == 80 || service.port == 443 ? "" : ":" + service.port)
+ service.txtRecord.webpath;
- var itemcontent = "" + ipaddr + "
URL: " + url + "
Model: " + model;
+ var itemcontent = "" + $('').text(ipaddr).html() + "
URL: " + $('').text(url).html() + "
Model: " + $('').text(model).html();
if (document.getElementById(divid) == null) {
- $('#zero-list').append("" + itemcontent + "
");
+ $('#zero-list').append("" + itemcontent + "
");
} else {
$(divid).html(itemcontent);
}
@@ -54,6 +58,9 @@
function stopScanning() {
zeroconf.unwatch('_http._tcp.', 'local.');
$("#searching-message").css('display', 'none');
+ if ($(".list-group-item[data-zeroconf]").length != true) {
+ $("#not-found-message").css('display', 'block');
+ }
}
setnavbar("app", "Server Locator", "settings");