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();