From d381a0304e3352d0dc5c5a8a2e2b8b51efc7bf4c Mon Sep 17 00:00:00 2001 From: Philipp Schaefer Date: Mon, 27 May 2013 15:34:04 +0200 Subject: [PATCH] check if zoom enabled before loading plugins --- mobile/src/com/cradle/iitc_mobile/IITC_WebViewClient.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mobile/src/com/cradle/iitc_mobile/IITC_WebViewClient.java b/mobile/src/com/cradle/iitc_mobile/IITC_WebViewClient.java index a6932b2f..75d87a7b 100644 --- a/mobile/src/com/cradle/iitc_mobile/IITC_WebViewClient.java +++ b/mobile/src/com/cradle/iitc_mobile/IITC_WebViewClient.java @@ -99,10 +99,6 @@ public class IITC_WebViewClient extends WebViewClient { } } - // add all plugins to the script...inject plugins + main script simultaneously - js += parsePlugins(); - this.js = js; - PackageManager pm = context.getPackageManager(); boolean hasMultitouch = pm .hasSystemFeature(PackageManager.FEATURE_TOUCHSCREEN_MULTITOUCH); @@ -112,6 +108,10 @@ public class IITC_WebViewClient extends WebViewClient { "window.showZoom = false;"); } + // add all plugins to the script...inject plugins + main script simultaneously + js += parsePlugins(); + this.js = js; + // need to wrap the mobile iitc.js version in a document ready. IITC // expects to be injected after the DOM has been loaded completely. // Since the mobile client injects IITC by replacing the gen_dashboard