Author: hnategh
New Revision: 55132
URL: http://svn.stylite.de/viewvc/egroupware?rev=55132&view=rev
Log:
Mobile theme W.I.P.:
- Activate SVGs in framework
Modified:
trunk/phpgwapi/inc/class.common.inc.php
trunk/phpgwapi/inc/class.egw_framework.inc.php
trunk/phpgwapi/js/jsapi/egw_images.js
— trunk/phpgwapi/inc/class.common.inc.php (original)
+++ trunk/phpgwapi/inc/class.common.inc.php Wed Feb 24 17:47:32 2016
@@ -766,6 +766,7 @@
*/
static function image($app,$image,$extension=’’,$svg=false)
{
— trunk/phpgwapi/inc/class.egw_framework.inc.php (original)
+++ trunk/phpgwapi/inc/class.egw_framework.inc.php Wed Feb 24 17:47:32 2016
@@ -1531,7 +1531,7 @@
self::validate_file(’/phpgwapi/images.php’, array(
‘template’ => $GLOBALS[‘egw_info’][‘server’][‘template_set’],
‘etag’ => md5(json_encode(common::image_map($GLOBALS[‘egw_info’][‘server’][‘template_set’]))),
-
'svg' => html::$ua_mobile, // always load non-svg image map, ATM we use svg icons only for mobile theme
));
self::validate_file('/phpgwapi/user.php', array(
'user' => $GLOBALS['egw_info']['user']['account_lid'],
— trunk/phpgwapi/js/jsapi/egw_images.js (original)
+++ trunk/phpgwapi/js/jsapi/egw_images.js Wed Feb 24 17:47:32 2016
@@ -172,18 +172,9 @@
image_element: function(_url, _alt)
{
var icon;
-
if (typeof _url == 'string' && _url.match(/\.svg$/))
-
{
-
icon = document.createElement('object');
-
icon.type = 'image/svg+xml';
-
icon.data = _url;
-
}
-
else
-
{
-
icon = document.createElement('img');
-
if (_url) icon.src = _url;
-
if (_alt) icon.alt = _alt;
-
}
-
icon = document.createElement('img');
-
if (_url) icon.src = _url;
-
if (_alt) icon.alt = _alt;
return icon;
}
};
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
eGroupWare-cvs mailing list
eGroupWare-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-cvs