projects
/
Pman.Core
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Process/Php7.php
[Pman.Core]
/
Pman.Include.js
diff --git
a/Pman.Include.js
b/Pman.Include.js
index
16cd4e1
..
3959cb4
100644
(file)
--- a/
Pman.Include.js
+++ b/
Pman.Include.js
@@
-6,22
+6,26
@@
Pman.Include = function(sp) {
Pman.Include = function(sp) {
+
+ Pman.Include.script(sp, true);
+
+}
+
+Pman.Include.cached = function(sp) {
+ Pman.Include.script(sp, false);
+
+}
+
+Pman.Include.script = function(sp,cached) {
var head = document.getElementsByTagName("head")[0];
var script = document.createElement("script");
var head = document.getElementsByTagName("head")[0];
var script = document.createElement("script");
- script.setAttribute("src", rootURL + sp +'?ts=' + Math.random() );
+ script.setAttribute("src", rootURL + sp +
+ ( cached ? '' : '?ts=' + Math.random() )
+ );
script.setAttribute("type", "text/javascript");
//script.setAttribute("id", trans.scriptId);
head.appendChild(script);
script.setAttribute("type", "text/javascript");
//script.setAttribute("id", trans.scriptId);
head.appendChild(script);
-
- Roo.get(documen.body).appendChild()
-
-)
-
-Pman.Include.cached = function(sp) {
- var tag = '<script type="text/javascript" src="' +
- rootURL + sp
- Roo.get(documen.body).appendChild()
-)
\ No newline at end of file
+}
\ No newline at end of file