Added batch device notification.

This commit is contained in:
Ylian Saint-Hilaire 2020-08-21 16:41:01 -07:00
parent df0f964fe6
commit b66e8622ac
2 changed files with 1552 additions and 1521 deletions

File diff suppressed because it is too large Load Diff

View File

@ -4449,7 +4449,7 @@
} else if (op == 108) { } else if (op == 108) {
// Device notification // Device notification
var x = "Perform batch device notification" + '<br /><br />'; var x = "Perform batch device notification" + '<br /><br />';
x += '<select id=d2deviceop style=width:100%><option value=1>' + "Message Box" + '</option><option value=2>' + "Toast Notification" + '</option></select>'; x += '<select id=d2deviceop style=width:100%><option value=2>' + "Toast Notification" + '</option><option value=1>' + "Message Box" + '</option></select>';
x += '<br /><input id=dp2notifyTitle maxlength=256 placeholder="' + "Title" + '" style=width:100% />'; x += '<br /><input id=dp2notifyTitle maxlength=256 placeholder="' + "Title" + '" style=width:100% />';
x += '<textarea id=d2notifyMsg style=background-color:#fcf3cf;width:100%;height:140px;resize:none;overflow-y:scroll></textarea>'; x += '<textarea id=d2notifyMsg style=background-color:#fcf3cf;width:100%;height:140px;resize:none;overflow-y:scroll></textarea>';
setDialogMode(2, "Device Notification", 3, d2groupActionFunctionNotifyExec, x); setDialogMode(2, "Device Notification", 3, d2groupActionFunctionNotifyExec, x);
@ -5978,7 +5978,7 @@
function deviceMessageFunction() { function deviceMessageFunction() {
if (xxdialogMode) return; if (xxdialogMode) return;
setDialogMode(2, "Device Message", 3, deviceMessageFunctionEx, '<div style=margin-bottom:4px>' + "Display a message box on the remote device." + '</div><textarea id=d2devMessage style=width:100%;height:80px;resize:none;overflow-y:scroll></textarea>'); setDialogMode(2, "Device Message", 3, deviceMessageFunctionEx, '<div style=margin-bottom:4px>' + "Display a message box on the remote device." + '</div><textarea id=d2devMessage style=background-color:#fcf3cf;width:100%;height:80px;resize:none;overflow-y:scroll></textarea>');
Q('d2devMessage').focus(); Q('d2devMessage').focus();
} }