From c64e1b9041673fe831dc7f67c1ee01343a6c0953 Mon Sep 17 00:00:00 2001 From: peteruithoven Date: Tue, 13 May 2014 14:46:35 +0200 Subject: [PATCH] Make sure draw link doesn't start browser from homescreen --- js/BoxPage.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/js/BoxPage.js b/js/BoxPage.js index 6ec6573..24b3a16 100644 --- a/js/BoxPage.js +++ b/js/BoxPage.js @@ -36,6 +36,10 @@ _drawItem = _list.find("#drawItem"); _updateItem = _list.find("#updateItem"); _joinNetworkItem = _list.find("#joinNetworkItem"); + + // make sure draw link is opened in same WebApp (added to homescreen) + // and it doesn't start a browser + $.stayInWebApp("#box #drawItem a",true); }); $.mobile.document.on( "pagebeforeshow", PAGE_ID, function( event, data ) { console.log("Box page pagebeforeshow");