Version 0.7.97
Ylian Saint-Hilaire committed
Mar 25, 2021 at 17:58 UTC
8d417fe3fe3d5788553463b0899d0bbc2b012dff
4 files changed
+7
-6
MeshCentralServer.njsproj
-1
@@ -553,7 +553,6 @@
553
<Content Include="translate\translate.json" />
554
<Content Include="views\agentinvite.handlebars" />
555
<Content Include="views\default-mobile.handlebars" />
556
- <Content Include="views\default2.handlebars" />
556
<Content Include="views\desktop.handlebars" />
557
<Content Include="views\download.handlebars" />
558
<Content Include="views\download2.handlebars" />
package.json
+1
-1
@@ -1,6 +1,6 @@
1
{
2
"name": "meshcentral",
3
- "version": "0.7.96",
3
+ "version": "0.7.97",
4
"keywords": [
5
"Remote Device Management",
6
"Remote Device Monitoring",
views/default-mobile.handlebars
+3
-2
@@ -707,7 +707,7 @@
707
<div style="margin-top:5px"><a onclick="account_showChangePassword()" style="cursor:pointer">Change password</a><span id="p2nextPasswordUpdateTime"></span></div>
708
<div style="margin-top:5px"><a onclick="account_showDeleteAccount()" style="cursor:pointer">Delete account</a></div>
709
<div style="margin-top:5px"><a onclick="toggleNightMode()" style="cursor:pointer">Set dark mode</a></div>
710
- <div style="margin-top:5px"><a onclick="showNotes(false,encodeURIComponentEx('p'+userinfo._id))" style="cursor:pointer">Personal notes</a></div>
710
+ <div style="margin-top:5px"><a onclick="showNotes(false)" style="cursor:pointer">Personal notes</a></div>
711
</div>
712
<br style=clear:both />
713
</div>
@@ -3422,9 +3422,10 @@
3422
3423
function showNotes(readonly, noteid) {
3424
if (xxdialogMode) return;
3425
+ if (noteid == null) { noteid = encodeURIComponentEx('p' + userinfo._id); }
3426
var x = '<textarea id=d2devNotes ro=' + readonly + ' noteid=' + noteid + ' readonly style=background-color:#fcf3cf;width:100%;height:200px;resize:none;overflow-y:scroll></textarea>';
3427
if (noteid.startsWith('node%2F%2F')) { x += '<span style=font-size:10px>' + "Device group notes can be viewed and changed by other device group administrators." + '<span>'; }
3427
- setDialogMode(2, "Notes", 2, showNotesEx, x, noteid);
3428
+ setDialogMode(2, "Notes", 3, showNotesEx, x, noteid);
3429
meshserver.send({ action: 'getNotes', id: decodeURIComponent(noteid) });
3430
}
3431
views/default.handlebars
+3
-2
@@ -154,7 +154,7 @@
154
<div tabindex=0 id=uiViewButton3 class=uiSelector onclick=userInterfaceSelectMenu(3) title="Fixed width interface" onkeypress="if (event.key == 'Enter') userInterfaceSelectMenu(3)"><div class="uiSelector3"></div></div>
155
</td>
156
<td>
157
- <div tabindex=0 id=uiViewButton6 class=uiSelector onclick="showNotes(false,encodeURIComponentEx('p'+userinfo._id))" title="Personal Notes" onkeypress="if (event.key == 'Enter') showNotes(false,'p'+encodeURIComponentEx(userinfo._id))"><div class="uiSelector6"></div></div>
157
+ <div tabindex=0 id=uiViewButton6 class=uiSelector onclick="showNotes(false)" title="Personal Notes" onkeypress="if (event.key == 'Enter') showNotes(false)"><div class="uiSelector6"></div></div>
158
<div tabindex=0 id=uiViewButton4 class=uiSelector onclick=toggleNightMode() title="Toggle night mode" onkeypress="if (event.key == 'Enter') toggleNightMode()"><div class="uiSelector4"></div></div>
159
<div tabindex=0 id=uiViewButton5 class=uiSelector onclick=toggleFooterBarMode() title="Toggle footer bar" onkeypress="if (event.key == 'Enter') toggleFooterBarMode()"><div class="uiSelector5"></div></div>
160
</td>
@@ -6476,9 +6476,10 @@
6476
6477
function showNotes(readonly, noteid) {
6478
if (xxdialogMode) return;
6479
+ if (noteid == null) { noteid = encodeURIComponentEx('p'+userinfo._id); }
6480
var x = '<textarea id=d2devNotes ro=' + readonly + ' noteid=' + noteid + ' readonly style=background-color:#fcf3cf;width:100%;height:200px;resize:none;overflow-y:scroll></textarea>';
6481
if (noteid.startsWith('node%2F%2F')) { x += '<span style=font-size:10px>' + "Device group notes can be viewed and changed by other device group administrators." + '<span>'; }
6481
- setDialogMode(2, "Notes", 2, showNotesEx, x, noteid);
6482
+ setDialogMode(2, "Notes", 3, showNotesEx, x, noteid);
6483
meshserver.send({ action: 'getNotes', id: decodeURIComponent(noteid) });
6484
}
6485