fix #8131 - chinese translations
[Pman.Core] / Pman.Include.js
1 /**
2  * include a script -- normaly used for testing..
3  *
4  *
5  */
6
7
8 Pman.Include = function(sp) {
9     
10     Pman.Include.script(sp, true);     
11      
12 }
13
14 Pman.Include.cached = function(sp) {
15     Pman.Include.script(sp, false);
16      
17 }
18
19 Pman.Include.script = function(sp,cached) {
20     var head = document.getElementsByTagName("head")[0];
21  
22     
23     var script = document.createElement("script");
24     script.setAttribute("src",  rootURL + sp    +
25               ( cached ? '' :     '?ts=' + Math.random() )
26             );
27     script.setAttribute("type", "text/javascript");
28     //script.setAttribute("id", trans.scriptId);
29     head.appendChild(script);
30      
31 }