[eGroupWare-svn] r56009 - /trunk/egroupware/api/js/jsapi/egw_images.js
[email protected] Wed, 04 May 2016 13:57:26 -0000
| Newsgroups | gmane.comp.web.egroupware.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: ralfbecker
Date: Wed May 4 15:57:26 2016
New Revision: 56009
URL: http://svn.stylite.de/viewvc/egroupware?rev=56009&view=rev
Log:
fix image with name filter is not found, because empty vfs store returns empty array having a method filter, now we check that attribute is of type string
Modified:
trunk/egroupware/api/js/jsapi/egw_images.js
Modified: trunk/egroupware/api/js/jsapi/egw_images.js
URL: http://svn.stylite.de/viewvc/egroupware/trunk/egroupware/api/js/jsapi/egw_images.js?rev=56009&r1=56008&r2=56009&view=diff
==============================================================================
--- trunk/egroupware/api/js/jsapi/egw_images.js (original)
+++ trunk/egroupware/api/js/jsapi/egw_images.js Wed May 4 15:57:26 2016
@@ -88,17 +88,17 @@
// own instance specific images in vfs have highest precedence
tries['vfs']=_name;
- if (typeof images['vfs'] != 'undefined' && typeof images['vfs'][_name] != 'undefined')
+ if (typeof images['vfs'] != 'undefined' && typeof images['vfs'][_name] == 'string')
{
return this.webserverUrl+images['vfs'][_name];
}
tries[_app + (_app == 'phpgwapi' ? " (current app)" : "")] = _name;
- if (typeof images[_app] != 'undefined' && typeof images[_app][_name] != 'undefined')
+ if (typeof images[_app] != 'undefined' && typeof images[_app][_name] == 'string')
{
return this.webserverUrl+images[_app][_name];
}
tries['phpgwapi'] = _name;
- if (typeof images['phpgwapi'] != 'undefined' && typeof images['phpgwapi'][_name] != 'undefined')
+ if (typeof images['phpgwapi'] != 'undefined' && typeof images['phpgwapi'][_name] == 'string')
{
return this.webserverUrl+images['phpgwapi'][_name];
}
------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z