diff --git a/views/default-mobile.handlebars b/views/default-mobile.handlebars
index 916366bd..593dae4e 100644
--- a/views/default-mobile.handlebars
+++ b/views/default-mobile.handlebars
@@ -926,6 +926,7 @@
@@ -3940,6 +3941,22 @@
}, "Start chat session?");
}
+ function deviceUrlFunction() {
+ if (xxdialogMode) return;
+ setDialogMode(2, "Open Page on Device", 3, deviceUrlFunctionEx, '');
+ Q('d2devurl').focus();
+ deviceUrlFunctionValidate();
+ }
+
+ function deviceUrlFunctionValidate() {
+ var x = Q('d2devurl').value.toLowerCase();
+ QE('idx_dlgOkButton', ((x.startsWith('http://') && (x.length > 7)) || (x.startsWith('https://') && (x.length > 8))));
+ }
+
+ function deviceUrlFunctionEx() {
+ meshserver.send({ action: 'msg', type: 'openUrl', nodeid: currentNode._id, url: Q('d2devurl').value });
+ }
+
// Look to see if we need to update the device timeline
function updateDeviceTimeline() {
if ((meshserver.State != 2) || (powerTimelineNode == null) || (powerTimelineUpdate == null) || (currentNode == null) || (currentNode.mtype == 3)) return;