mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-20 18:18:56 +00:00
fixed bug with adding external css files
This commit is contained in:
parent
be9d85efc2
commit
315eff1d37
1 changed files with 7 additions and 1 deletions
|
|
@ -582,7 +582,13 @@ CloudClient._anyload = function(pName,pSrc,pFunc,pStyle,pId,pElement)
|
|||
if(!document.getElementById(lID))
|
||||
{
|
||||
var element = document.createElement(pName);
|
||||
element.src = pSrc;
|
||||
/* if working with external css
|
||||
* using href in any other case
|
||||
* using src
|
||||
*/
|
||||
pName === 'link' ?
|
||||
element.href = pSrc
|
||||
: element.src = pSrc;
|
||||
element.id=lID;
|
||||
if(arguments.length>=3){
|
||||
/* if passed arguments function
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue