mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 00:13:35 +01:00
Avoid adding CSS files again if they're already in the header
This commit is contained in:
parent
3425b22074
commit
089144d986
@ -105,7 +105,10 @@ egw.extend('files', egw.MODULE_WND_LOCAL, function(_app, _wnd)
|
||||
// Get the head node and append the newly created "link" node
|
||||
// to it.
|
||||
var head = _wnd.document.getElementsByTagName('head')[0];
|
||||
head.appendChild(cssnode);
|
||||
if(jQuery('link[href="'+_cssFile+'"]',head).length == 0)
|
||||
{
|
||||
head.appendChild(cssnode);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user