diff --git a/code/boot.js b/code/boot.js index aa3ee313..238bdd6b 100644 --- a/code/boot.js +++ b/code/boot.js @@ -6,27 +6,6 @@ // Used to disable on multitouch devices window.showZoom = true; -window.setupBackButton = function() { - var c = window.isSmartphone() - ? window.smartphone.mapButton - : $('#chatcontrols a.active'); - - window.setupBackButton._actions = [c.get(0)]; - $('#chatcontrols a').click(function() { - // ignore shrink button - if($(this).hasClass('toggle')) return; - window.setupBackButton._actions.push(this); - window.setupBackButton._actions = window.setupBackButton._actions.slice(-2); - }); - - window.goBack = function() { - var a = window.setupBackButton._actions[0]; - if(!a) return; - $(a).click(); - window.setupBackButton._actions = [a]; - } -} - window.setupLargeImagePreview = function() { $('#portaldetails').on('click', '.imgpreview', function() { var img = $(this).find('img')[0]; diff --git a/mobile/src/com/cradle/iitc_mobile/IITC_JSInterface.java b/mobile/src/com/cradle/iitc_mobile/IITC_JSInterface.java index e0dc6cff..8aff9177 100644 --- a/mobile/src/com/cradle/iitc_mobile/IITC_JSInterface.java +++ b/mobile/src/com/cradle/iitc_mobile/IITC_JSInterface.java @@ -64,13 +64,6 @@ public class IITC_JSInterface { .show(); } - // exit IITC Mobile - @JavascriptInterface - public void exitIITC() { - Log.d("iitcm","no back stack...finishing iitc"); - ((IITC_Mobile) context).finish(); - } - // get layers and list them in a dialog @JavascriptInterface public void setLayers(String base_layer, String overlay_layer) {