X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=blobdiff_plain;f=Pman.Include.js;h=3959cb4d7b9043766dc7fb12d624ec42f2992790;hp=835eb533292e56b037fa4b5d787003cc7e493f9b;hb=c1af5e6bb6064e88469651271f4d9aaff34d69c0;hpb=b194e53038d8a33f763753384a25f04e6f16a5ed diff --git a/Pman.Include.js b/Pman.Include.js index 835eb533..3959cb4d 100644 --- a/Pman.Include.js +++ b/Pman.Include.js @@ -7,15 +7,14 @@ Pman.Include = function(sp) { - Pman.Include.script(sp, true) - + Pman.Include.script(sp, true); -) +} Pman.Include.cached = function(sp) { - Pman.Include.script(sp, false) + Pman.Include.script(sp, false); -) +} Pman.Include.script = function(sp,cached) { var head = document.getElementsByTagName("head")[0]; @@ -23,10 +22,10 @@ Pman.Include.script = function(sp,cached) { var script = document.createElement("script"); script.setAttribute("src", rootURL + sp + - ( cached ? '' : '?ts=' + Math.random() )); + ( cached ? '' : '?ts=' + Math.random() ) + ); script.setAttribute("type", "text/javascript"); //script.setAttribute("id", trans.scriptId); head.appendChild(script); - - Roo.get(documen.body).appendChild() -) \ No newline at end of file + +} \ No newline at end of file