minor changes

This commit is contained in:
coderaiser 2012-07-27 04:02:51 -04:00
parent 0c119697e1
commit 6d5ffc2a27
2 changed files with 5 additions and 4 deletions

View file

@ -663,7 +663,7 @@ CloudClient._anyload = function(pParams_o)
element.style.cssText=pParams_o.style;
}
if(lAsync || lAsync === undefined)
if(lAsync)
element.async = true;
(pParams_o.element || document.body).appendChild(element);
@ -680,14 +680,15 @@ CloudClient._anyload = function(pParams_o)
};
/* Функция загружает js-файл */
CloudClient.jsload = function(pSrc,pFunc,pStyle,pId)
CloudClient.jsload = function(pSrc,pFunc,pStyle,pId,pAsync)
{
CloudClient._anyload({
name : 'script',
src : pSrc,
func : pFunc,
stle : pStyle,
id : pId
id : pId,
async: pAsync
});
};
/* Функция создаёт елемент style и записывает туда стили

View file

@ -61,7 +61,7 @@ CloudCommander.Viewer.FancyBox = {
'jquery.fancybox.pack.js', {onload: pCallBack});
console.log('loading offline copy of' +
'jquery.fancybox.pack.js');
'jquery.fancybox.pack.js');
})
});
};