From ec34cbb070423c6e1c30ac3dd5783433fe848204 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 24 Jul 2012 06:19:16 +0000 Subject: [PATCH] do NOT use jerryr as mobile template --- .../jerryr/class.jerryr_framework.inc.php | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/phpgwapi/templates/jerryr/class.jerryr_framework.inc.php b/phpgwapi/templates/jerryr/class.jerryr_framework.inc.php index bdb606e747..c685c649af 100644 --- a/phpgwapi/templates/jerryr/class.jerryr_framework.inc.php +++ b/phpgwapi/templates/jerryr/class.jerryr_framework.inc.php @@ -31,6 +31,30 @@ class jerryr_framework extends idots_framework parent::__construct($template); } + /** + * Check if current user agent is supported + * + * Currently we do NOT support: + * - iPhone, iPad, Android, SymbianOS due to iframe scrolling problems of Webkit + * + * @return boolean + */ + public static function is_supported_user_agent() + { + if (html::$ua_mobile) + { + return false; + } + return true; + } + + /** + * Display the string with html of the topmenu if its enabled + * + * @param array $vars + * @param array $apps + * @return string + */ function topmenu(array $vars,array $apps) { $this->tplsav2->menuitems = array();