wrong window was used when compiling list of already included scripts or css files, fixes missing css styles for context menu in popups (list of links)

This commit is contained in:
Ralf Becker 2014-03-13 15:28:42 +00:00
parent c48e63df8a
commit f47e38f320

View File

@ -102,13 +102,13 @@ egw.extend('files', egw.MODULE_WND_LOCAL, function(_app, _wnd)
*/
var files = [];
// add already included scripts
var tags = $j('script');
var tags = jQuery('script', _wnd.document);
for(var i=0; i < tags.length; ++i)
{
files.push(removeTS(tags[i].src));
}
// add already included css
tags = $j('link[type="text/css"]');
tags = jQuery('link[type="text/css"]', _wnd.document);
for(var i=0; i < tags.length; ++i)
{
files.push(removeTS(tags[i].href));