';
- x += '
';
+ //x += '
';
if (mesh.mtype == 2) x += '
' + "Interfaces" + ' ';
if (xxmap != null) x += '
' + "Location" + ' ';
if ((terminalAccess) && ((meshrights & 8) != 0) && (mesh.mtype == 2)) x += '
' + "Router" + ' ';
@@ -4904,6 +4910,13 @@
var lastTab = getstore('_curPluginPage', null);
if (lastTab != null && Q('p19ph-' + lastTab) != null) pluginHandler.callPluginPage(lastTab, Q('p19ph-' + lastTab));
}
+
+ // Change the URL
+ var urlviewmode = '';
+ if ((xxcurrentView >= 10) && (xxcurrentView <= 19) && (currentNode != null)) {
+ urlviewmode = '?viewmode=' + xxcurrentView + '&gotonode=' + currentNode._id.split('/')[2];
+ try { window.history.replaceState({}, document.title, window.location.pathname + urlviewmode); } catch (ex) { }
+ }
}
setupDesktop(); // Always refresh the desktop, even if we are on the same device, we need to do some canvas switching.
if (!panel) panel = 10;
@@ -5264,7 +5277,7 @@
function p10showMqttLoginDialog(nodeid) { meshserver.send({ action: 'getmqttlogin', nodeid: nodeid }); }
// Place a device link URL in the clipboard
- function p10deviceLinkToClipboard() { copyTextToClip2(document.URL.split('?')[0].split('#')[0] + '?gotonode=' + currentNode._id.split('/')[2] + '&viewmode=10'); }
+ //function p10deviceLinkToClipboard() { copyTextToClip2(document.URL.split('?')[0].split('#')[0] + '?gotonode=' + currentNode._id.split('/')[2] + '&viewmode=10'); }
// Open XTerm
function p10openxterm(e, nodeid) {
@@ -10322,6 +10335,15 @@
for (var i = 0; i < 52; i++) { QV('p' + i, i == x); }
xxcurrentView = x;
+ // Change the URL
+ if (xxcurrentView > 0) {
+ var urlviewmode = '';
+ if ((xxcurrentView >= 10) && (xxcurrentView <= 19)) {
+ if (currentNode != null) { urlviewmode = '?viewmode=' + xxcurrentView + '&gotonode=' + currentNode._id.split('/')[2]; }
+ } else if (xxcurrentView > 1) { urlviewmode = '?viewmode=' + xxcurrentView; }
+ try { window.history.replaceState({}, document.title, window.location.pathname + urlviewmode); } catch (ex) { }
+ }
+
// Remove top bar selection
var mainBarItems = ['MainMenuMyDevices', 'MainMenuMyAccount', 'MainMenuMyEvents', 'MainMenuMyFiles', 'MainMenuMyUsers', 'MainMenuMyServer'];
for (var i in mainBarItems) {