diff --git a/agents/meshcore.js b/agents/meshcore.js
index 61f85282..eeed2660 100644
--- a/agents/meshcore.js
+++ b/agents/meshcore.js
@@ -1466,6 +1466,14 @@ function handleServerCommand(data) {
sendConsoleText('localappMsg: ' + data.appid + ', ' + JSON.stringify(data.value));
if (data.appid != null) { sendToRegisteredApp(data.appid, data.value); } else { broadcastToRegisteredApps(data.value); }
break;
+ case 'alertbox': {
+ // Display an old style alert box
+ if (data.title && data.msg) {
+ MeshServerLogEx(18, [data.title, data.msg], "Displaying alert box, title=" + data.title + ", message=" + data.msg, data);
+ try { require('message-box').create(data.title, data.msg, 9999, 1).then(function () { }).catch(function () { }); } catch (ex) { }
+ }
+ break;
+ }
default:
// Unknown action, ignore it.
break;
diff --git a/views/default.handlebars b/views/default.handlebars
index a5fc8d42..097c6d5f 100644
--- a/views/default.handlebars
+++ b/views/default.handlebars
@@ -5767,7 +5767,7 @@
} else if (op == 108) {
// Device notification
var x = "Perform batch device notification" + '
';
- x += '';
+ x += '';
x += '
';
x += '';
setDialogMode(2, "Device Notification", 3, d2groupActionFunctionNotifyExec, x);
@@ -5820,6 +5820,8 @@
for (var i = 0; i < chkNodeIds.length; i++) { meshserver.send({ action: 'msg', type: 'messagebox', nodeid: chkNodeIds[i], title: title, msg: msg }); }
} else if (op == 2) { // Toast
meshserver.send({ action: 'toast', nodeids: chkNodeIds, title: title, msg: msg });
+ } else if (op == 3) { // Old Style MessageBox
+ for (var i = 0; i < chkNodeIds.length; i++) { meshserver.send({ action: 'msg', type: 'alertbox', nodeid: chkNodeIds[i], title: title, msg: msg }); }
}
}