mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2024-12-26 07:23:03 +03:00
Added device chat support in mobile app.
This commit is contained in:
parent
91f33dfd73
commit
ef08c0b9b8
File diff suppressed because it is too large
Load Diff
@ -723,7 +723,8 @@
|
||||
<div id=deskarea4 style="position:absolute;bottom:0px;width:100%;height:32px">
|
||||
<div style=padding-top:2px;padding-bottom:2px;background:#C0C0C0>
|
||||
<div style=float:right;text-align:right>
|
||||
<span id=DeskToastButton><img src='images/icon-notify.png' onclick=deviceToastFunction() height=16 width=16 style=padding-top:5px /></span>
|
||||
<span id=DeskChatButton><img src='images/icon-chat.png' onclick=deviceChat(event) height=16 width=16 style=padding-top:5px;cursor:pointer /></span>
|
||||
<span id=DeskToastButton><img src='images/icon-notify.png' onclick=deviceToastFunction() height=16 width=16 style=padding-top:5px;cursor:pointer /></span>
|
||||
<!--<input id=DeskToolsButton type=button value=Tools onkeypress="return false" onkeydown="return false" onclick="toggleDeskTools()"> -->
|
||||
</div>
|
||||
<div>
|
||||
@ -2957,6 +2958,20 @@
|
||||
setDialogMode(2, "Device Action", (count == 0) ? 1 : 3, deviceActionFunctionEx, x);
|
||||
}
|
||||
|
||||
function deviceChat(e) {
|
||||
if (xxdialogMode) return;
|
||||
setDialogMode(2, "Device Action", 3, function () {
|
||||
var url = '/messenger?id=meshmessenger/' + encodeURIComponentEx(currentNode._id) + '/' + encodeURIComponentEx(userinfo._id) + '&title=' + currentNode.name;
|
||||
if ((authCookie != null) && (authCookie != '')) { url += '&auth=' + authCookie; }
|
||||
if (e && (e.shiftKey == true)) {
|
||||
safeNewWindow(url, 'meshmessenger:' + currentNode._id);
|
||||
} else {
|
||||
safeNewWindow(url, 'meshmessenger:' + currentNode._id, 'directories=no,titlebar=no,toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=400,height=560');
|
||||
}
|
||||
meshserver.send({ action: 'meshmessenger', nodeid: decodeURIComponent(currentNode._id) });
|
||||
}, "Start chat session?");
|
||||
}
|
||||
|
||||
function deviceActionFunctionEx() {
|
||||
var op = Q('d2deviceop').value;
|
||||
if (op == 100) {
|
||||
|
Loading…
Reference in New Issue
Block a user